Chromium Code Reviews
DescriptionImprove LoadOptimizer::ReplacePhiWith.
Previously we were only looking for congruent phis. But we can also include all operations that allow CSE and have no dependencies (e.g. arithmetic) into the congruency check.
This allows in the code like
var idx = 0;
for (var el in src) dst[idx++] = el;
see the congruency between Phi introduced for idx and Phi that LoadOptimizer emits for iterator's _index field. As the result we are able to optimize this code to use a single iteration variable instead of two.
R=fschneider@google.com
BUG=
Committed: https://code.google.com/p/dart/source/detail?r=39864
Patch Set 1 #
Total comments: 4
Messages
Total messages: 4 (0 generated)
|
|||||||||||||||||||