summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorAnton Kirilov <anton.kirilov@linaro.org>2016-05-13 17:56:15 +0100
committerAnton Kirilov <anton.kirilov@linaro.org>2016-07-01 17:45:30 +0100
commite14dc86d4e84d52426510d0fafbac3d7e04f960c (patch)
tree7ec03801e3dd8d4a6f428239308f1f7700c815fc /compiler/optimizing/graph_visualizer.cc
parent1fdb340de4e608a88e8683c857cad5d0da2c16de (diff)
Simplification for associative and commutative operations on constants
The purpose of this change is to enable the instruction simplifier to recognize patterns such as OP y, x, const1 OP z, y, const2 where OP is both an associative and a commutative operation on integral types, and replace them with OP z, x, const3 Since subtraction on integral types is equivalent to addition with a negated operand, it receives a similar treatment, even though it is not commutative. Change-Id: I278cac39bd39bc843d250a976931cb000876ea88
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions