Chromium Code Reviews
DescriptionFix a bug in SSA renaming.
This CL changes the order of step 2a and 2b in the SSA renaming: Uses of
LoadLocal/StoreLocal must be renamed first so that the environment is correctly
updated for StoreLocal instructions.
A simple example showing the bug:
test_xy() {
var x = 1;
var y = 2;
var z = 3;
for (var i = 0; i < 5; i++) {
y = z = x;
x++;
}
return x + y + z;
}
Also in this change:
- changed the printing of SSA operands to v0, v1, .. instead
of t0, t1 to better distinguish them from non-SSA operands.
- make sure that UseVal are always copied when renaming phi
input operands.
Committed: https://code.google.com/p/dart/source/detail?r=8893
Patch Set 1 #
Total comments: 6
Patch Set 2 : #
Messages
Total messages: 4 (0 generated)
|
||||||||||||||||||||||||||||