Index: test/cctest/compiler/test-simplified-lowering.cc |
diff --git a/test/cctest/compiler/test-simplified-lowering.cc b/test/cctest/compiler/test-simplified-lowering.cc |
index ad92009ff8b84328589850c4a6d7c1252c4abc7c..4efb1494fd658f6b7bb903088e522c0f91b5841e 100644 |
--- a/test/cctest/compiler/test-simplified-lowering.cc |
+++ b/test/cctest/compiler/test-simplified-lowering.cc |
@@ -6,11 +6,10 @@ |
#include "src/ast/scopes.h" |
#include "src/compiler/access-builder.h" |
-#include "src/compiler/change-lowering.h" |
#include "src/compiler/control-builders.h" |
#include "src/compiler/effect-control-linearizer.h" |
-#include "src/compiler/graph-reducer.h" |
#include "src/compiler/graph-visualizer.h" |
+#include "src/compiler/memory-optimizer.h" |
#include "src/compiler/node-properties.h" |
#include "src/compiler/pipeline.h" |
#include "src/compiler/representation-change.h" |
@@ -67,11 +66,8 @@ class SimplifiedLoweringTester : public GraphBuilderTester<ReturnType> { |
EffectControlLinearizer linearizer(&jsgraph, schedule, this->zone()); |
linearizer.Run(); |
- GraphReducer reducer(this->zone(), this->graph()); |
- ChangeLowering lowering(&reducer, &jsgraph); |
- reducer.AddReducer(&lowering); |
- reducer.ReduceGraph(); |
- Verifier::Run(this->graph()); |
+ MemoryOptimizer memory_optimizer(&jsgraph, this->zone()); |
+ memory_optimizer.Optimize(); |
} |
void CheckNumberCall(double expected, double input) { |
@@ -753,11 +749,8 @@ class TestingGraph : public HandleAndZoneScope, public GraphAndBuilders { |
EffectControlLinearizer linearizer(&jsgraph, schedule, this->zone()); |
linearizer.Run(); |
- GraphReducer reducer(this->zone(), this->graph()); |
- ChangeLowering lowering(&reducer, &jsgraph); |
- reducer.AddReducer(&lowering); |
- reducer.ReduceGraph(); |
- Verifier::Run(this->graph()); |
+ MemoryOptimizer memory_optimizer(&jsgraph, this->zone()); |
+ memory_optimizer.Optimize(); |
} |
// Inserts the node as the return value of the graph. |