Hi Jian, > Overall, i think in eval_const_expressions_mutator, we do below should > be enough. > > + case T_RPRNavExpr: > [...]
The case is not needed for that. A node without a case in eval_const_expressions_mutator() goes to ece_generic_processing(), which copies the node and const-simplifies its subexpressions, so RPRNavExpr is already folded the same way. A case for T_RPRNavExpr would be needed only to remove a navigation operation where that is possible, as PREV(x, 0) can become x; there are a few more such cases. If x has become a constant by one of the paths in my increment mail, such as pull-up, the expression above it can then be folded as well, which is where the real gain would be. Best regards, Henson
