Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 707d88757c698435a41aadee3738f6c73ed619d1..2669b18b529b8902764095c4a9273146ea732798 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -319,8 +319,8 @@ Handle<Code> Pipeline::GenerateCode() { |
ValueNumberingReducer vn_reducer(zone()); |
SimplifiedOperatorReducer simple_reducer(&jsgraph); |
GraphReducer graph_reducer(&graph); |
- graph_reducer.AddReducer(&simple_reducer); |
graph_reducer.AddReducer(&vn_reducer); |
+ graph_reducer.AddReducer(&simple_reducer); |
graph_reducer.ReduceGraph(); |
VerifyAndPrintGraph(&graph, "Lowered simplified"); |
@@ -333,11 +333,13 @@ Handle<Code> Pipeline::GenerateCode() { |
SourcePosition::Unknown()); |
Linkage linkage(info()); |
ValueNumberingReducer vn_reducer(zone()); |
+ SimplifiedOperatorReducer simple_reducer(&jsgraph); |
ChangeLowering lowering(&jsgraph, &linkage); |
MachineOperatorReducer mach_reducer(&jsgraph); |
GraphReducer graph_reducer(&graph); |
// 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.ReduceGraph(); |