Index: test/cctest/compiler/test-scheduler.cc |
diff --git a/test/cctest/compiler/test-scheduler.cc b/test/cctest/compiler/test-scheduler.cc |
index da7b7a3b69d535594faefb1916142b0c2a587b5e..aed8f8b96f68020e99cb64f996e266bb1887f9c1 100644 |
--- a/test/cctest/compiler/test-scheduler.cc |
+++ b/test/cctest/compiler/test-scheduler.cc |
@@ -200,13 +200,12 @@ TEST(RPOSelfLoop) { |
TEST(RPOEntryLoop) { |
HandleAndZoneScope scope; |
Schedule schedule(scope.main_zone()); |
- BasicBlock* body = schedule.NewBasicBlock(); |
- schedule.AddSuccessorForTesting(schedule.start(), body); |
- schedule.AddSuccessorForTesting(body, schedule.start()); |
+ schedule.AddSuccessorForTesting(schedule.start(), schedule.end()); |
+ schedule.AddSuccessorForTesting(schedule.end(), schedule.start()); |
ZonePool zone_pool(scope.main_isolate()); |
BasicBlockVector* order = Scheduler::ComputeSpecialRPO(&zone_pool, &schedule); |
CheckRPONumbers(order, 2, true); |
- BasicBlock* loop[] = {schedule.start(), body}; |
+ BasicBlock* loop[] = {schedule.start(), schedule.end()}; |
CheckLoop(order, loop, 2); |
} |
@@ -654,7 +653,7 @@ TEST(RPOLoopMultibackedge) { |
BasicBlock* A = schedule.start(); |
BasicBlock* B = schedule.NewBasicBlock(); |
BasicBlock* C = schedule.NewBasicBlock(); |
- BasicBlock* D = schedule.NewBasicBlock(); |
+ BasicBlock* D = schedule.end(); |
BasicBlock* E = schedule.NewBasicBlock(); |
schedule.AddSuccessorForTesting(A, B); |