Index: src/hydrogen-range-analysis.cc |
diff --git a/src/hydrogen-range-analysis.cc b/src/hydrogen-range-analysis.cc |
index 9d58fc89f0b79030e07246ca39c9376e7e24e6b4..6924a076e716c26b690905c217b5232929ae42dc 100644 |
--- a/src/hydrogen-range-analysis.cc |
+++ b/src/hydrogen-range-analysis.cc |
@@ -123,6 +123,22 @@ void HRangeAnalysisPhase::Run() { |
block = NULL; |
} |
} |
+ |
+ // The ranges are not valid anymore due to SSI vs. SSA! |
+ PoisonRanges(); |
+} |
+ |
+ |
+void HRangeAnalysisPhase::PoisonRanges() { |
+#ifdef DEBUG |
+ for (int i = 0; i < graph()->blocks()->length(); ++i) { |
+ HBasicBlock* block = graph()->blocks()->at(i); |
+ for (HInstructionIterator it(block); !it.Done(); it.Advance()) { |
+ HInstruction* instr = it.Current(); |
+ if (instr->HasRange()) instr->PoisonRange(); |
+ } |
+ } |
+#endif |
} |