Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(617)

Unified Diff: lib/compiler/implementation/ssa/optimize.dart

Issue 10704229: Fix loop-invariant code motion. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compiler/implementation/ssa/nodes.dart ('k') | tests/language/loop_hoist_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/optimize.dart
diff --git a/lib/compiler/implementation/ssa/optimize.dart b/lib/compiler/implementation/ssa/optimize.dart
index d8150137da83a7d73ad5476085d756cbc3c168f6..3245032367aa2fd1a21e06778c3b72451ab91be8 100644
--- a/lib/compiler/implementation/ssa/optimize.dart
+++ b/lib/compiler/implementation/ssa/optimize.dart
@@ -886,6 +886,11 @@ class SsaGlobalValueNumberer implements OptimizationPhase {
preheader.moveAtExit(instruction);
}
}
+ int oldChangesFlags = changesFlags;
+ changesFlags |= instruction.getChangesFlags();
+ if (oldChangesFlags != changesFlags) {
+ dependsFlags = HInstruction.computeDependsOnFlags(changesFlags);
+ }
instruction = next;
}
}
« no previous file with comments | « lib/compiler/implementation/ssa/nodes.dart ('k') | tests/language/loop_hoist_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698