Index: test/unittests/compiler/scheduler-unittest.cc |
diff --git a/test/unittests/compiler/scheduler-unittest.cc b/test/unittests/compiler/scheduler-unittest.cc |
index 45d555d7a143697e841d4799316a7f656a4171cc..af43b2efffaae118fa0b0b7855e742a5b807b6d0 100644 |
--- a/test/unittests/compiler/scheduler-unittest.cc |
+++ b/test/unittests/compiler/scheduler-unittest.cc |
@@ -1124,13 +1124,11 @@ TARGET_TEST_F(SchedulerTest, Terminate) { |
Node* loop = graph()->NewNode(common()->Loop(2), start, start); |
loop->ReplaceInput(1, loop); // self loop, NTL. |
- Node* effect = graph()->NewNode(common()->EffectPhi(1), start, loop); |
+ Node* effect = graph()->NewNode(common()->EffectPhi(2), start, start, loop); |
+ effect->ReplaceInput(1, effect); // self loop. |
Node* terminate = graph()->NewNode(common()->Terminate(), effect, loop); |
- effect->ReplaceInput(1, terminate); |
- |
Node* end = graph()->NewNode(common()->End(1), terminate); |
- |
graph()->SetEnd(end); |
Schedule* schedule = ComputeAndVerifySchedule(6); |