public class CommonSubexpressionPromoter
extends java.lang.Object
Constructor and Description |
---|
CommonSubexpressionPromoter(OptimizerEE opt) |
Modifier and Type | Method and Description |
---|---|
Expression |
promoteCommonSubexpressions(Expression in)
Search for duplicate subexpressions within an expression tree, and if one is found,
generate a local variable bound to the common subexpression, replacing the original
subexpression with a reference to the new local variable
|
public CommonSubexpressionPromoter(OptimizerEE opt)
public Expression promoteCommonSubexpressions(Expression in)
in
- the expression to be searchedCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.