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