Reviewers: Sven Panne,
Description:
[turbofan] Also run MachineOperatorReducer in SimplifiedLoweringPhase.
[email protected]
Please review this at https://codereview.chromium.org/809313002/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+4, -3 lines):
M src/compiler/pipeline.cc
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();
}
};
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.