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

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

Issue 10100001: Refactoring if block-information. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
Index: lib/compiler/implementation/ssa/optimize.dart
diff --git a/lib/compiler/implementation/ssa/optimize.dart b/lib/compiler/implementation/ssa/optimize.dart
index 5abf8de4e536eca68d63efdbcf77b3adc61a36f4..9d79d8492d141e2400bfa31e73f882b2daf5ff1c 100644
--- a/lib/compiler/implementation/ssa/optimize.dart
+++ b/lib/compiler/implementation/ssa/optimize.dart
@@ -471,7 +471,8 @@ class SsaGlobalValueNumberer implements OptimizationPhase {
HBasicBlock block = graph.blocks[i];
if (block.isLoopHeader()) {
int changesFlags = loopChangesFlags[block.id];
- HBasicBlock last = block.loopInformation.getLastBackEdge();
+ HLoopInformation info = block.blockInformation;
+ HBasicBlock last = info.getLastBackEdge();
for (int j = block.id; j <= last.id; j++) {
moveLoopInvariantCodeFromBlock(graph.blocks[j], block, changesFlags);
}

Powered by Google App Engine
This is Rietveld 408576698