Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: test/unittests/compiler/scheduler-unittest.cc

Issue 1398763002: [turbofan] Fix scheduler test for Loop/Terminate nodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698