Commit Graph

1 Commits

Author SHA1 Message Date
alexlamsl
7550c53fd6 fix usage of transform() vs optimize()
Given the current `OPT()` node:
- `optimize(compressor)` works on the same level, and will only `descend()` if returned instance is different
- `transform(compressor)` works on child nodes, and will always `descend()`

Other fixes
- `loopcontrol_target()` should compare against `compressor.self()` since the current node may have already been displaced
- remove obsolete optimisation in `AST_Binary` after #1477

fixes #1592
2017-03-11 05:08:30 +08:00