Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index b1d7fda9a37b3fad741d75ef78a33c995c707ba7..7b1f61f30e8d858bf7882d0edcbc337cebc01aa8 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -593,22 +593,23 @@ struct ChangeLoweringPhase { |
}; |
-struct ControlReductionPhase { |
+struct EarlyControlReductionPhase { |
+ static const char* phase_name() { return "early control reduction"; } |
void Run(PipelineData* data, Zone* temp_zone) { |
SourcePositionTable::Scope pos(data->source_positions(), |
SourcePosition::Unknown()); |
- ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), data->common()); |
+ ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), data->common(), 1); |
} |
}; |
-struct EarlyControlReductionPhase : ControlReductionPhase { |
- static const char* phase_name() { return "early control reduction"; } |
-}; |
- |
- |
-struct LateControlReductionPhase : ControlReductionPhase { |
+struct LateControlReductionPhase { |
static const char* phase_name() { return "late control reduction"; } |
+ void Run(PipelineData* data, Zone* temp_zone) { |
+ SourcePositionTable::Scope pos(data->source_positions(), |
+ SourcePosition::Unknown()); |
+ ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), data->common(), 0); |
+ } |
}; |