Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 97ede3840cf9b0ac8c4623c1e513d403924f2c8d..165a7377e7133871f1206a2daf86d1398e9afca8 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -442,9 +442,11 @@ struct SimplifiedLoweringPhase { |
lowering.LowerAllNodes(); |
ValueNumberingReducer vn_reducer(temp_zone); |
SimplifiedOperatorReducer simple_reducer(data->jsgraph()); |
+ MachineOperatorReducer machine_reducer(data->jsgraph()); |
GraphReducer graph_reducer(data->graph(), temp_zone); |
graph_reducer.AddReducer(&vn_reducer); |
graph_reducer.AddReducer(&simple_reducer); |
+ graph_reducer.AddReducer(&machine_reducer); |
graph_reducer.ReduceGraph(); |
} |
}; |
@@ -460,13 +462,12 @@ struct ChangeLoweringPhase { |
ValueNumberingReducer vn_reducer(temp_zone); |
SimplifiedOperatorReducer simple_reducer(data->jsgraph()); |
ChangeLowering lowering(data->jsgraph(), &linkage); |
- MachineOperatorReducer mach_reducer(data->jsgraph()); |
+ MachineOperatorReducer machine_reducer(data->jsgraph()); |
GraphReducer graph_reducer(data->graph(), temp_zone); |
- // TODO(titzer): Figure out if we should run all reducers at once here. |
graph_reducer.AddReducer(&vn_reducer); |
graph_reducer.AddReducer(&simple_reducer); |
graph_reducer.AddReducer(&lowering); |
- graph_reducer.AddReducer(&mach_reducer); |
+ graph_reducer.AddReducer(&machine_reducer); |
graph_reducer.ReduceGraph(); |
} |
}; |