Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index a1207a286a571f5d2d27bcf55006b223b93b24e2..227234f273e5a050bd66dc48e86189404573c680 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -1542,14 +1542,6 @@ bool PipelineImpl::CreateGraph() { |
// Lower JSOperators where we can determine types. |
Run<TypedLoweringPhase>(); |
RunPrintAndVerify("Lowered typed"); |
- |
- if (data->info()->is_loop_peeling_enabled()) { |
- Run<LoopPeelingPhase>(); |
- RunPrintAndVerify("Loops peeled", true); |
- } else { |
- Run<LoopExitEliminationPhase>(); |
- RunPrintAndVerify("Loop exits eliminated", true); |
- } |
} |
// Do some hacky things to prepare for the optimization phase. |
@@ -1564,6 +1556,14 @@ bool PipelineImpl::CreateGraph() { |
bool PipelineImpl::OptimizeGraph(Linkage* linkage) { |
PipelineData* data = this->data_; |
+ if (data->info()->is_loop_peeling_enabled()) { |
+ Run<LoopPeelingPhase>(); |
+ RunPrintAndVerify("Loops peeled", true); |
+ } else { |
+ Run<LoopExitEliminationPhase>(); |
+ RunPrintAndVerify("Loop exits eliminated", true); |
+ } |
+ |
if (!data->is_asm()) { |
if (FLAG_turbo_load_elimination) { |
Run<LoadEliminationPhase>(); |