Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 837c9780c50abe3753ddfd8c86d60a45626405f8..2523d9b1b24502a0fe09e01c64103581812e6c8d 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -2916,6 +2916,9 @@ bool HGraph::Optimize(BailoutReason* bailout_reason) { |
// Remove dead code and phis |
if (FLAG_dead_code_elimination) Run<HDeadCodeEliminationPhase>(); |
+ |
+ if (FLAG_use_escape_analysis) Run<HEscapeAnalysisPhase>(); |
+ |
CollectPhis(); |
if (has_osr()) osr()->FinishOsrValues(); |
@@ -2939,8 +2942,6 @@ bool HGraph::Optimize(BailoutReason* bailout_reason) { |
if (FLAG_use_canonicalizing) Run<HCanonicalizePhase>(); |
- if (FLAG_use_escape_analysis) Run<HEscapeAnalysisPhase>(); |
- |
if (FLAG_use_gvn) Run<HGlobalValueNumberingPhase>(); |
if (FLAG_use_range) Run<HRangeAnalysisPhase>(); |