Index: test/cctest/compiler/test-scheduler.cc |
diff --git a/test/cctest/compiler/test-scheduler.cc b/test/cctest/compiler/test-scheduler.cc |
index f835265201eb704b012abf761d99d453eaac9e85..447422d121ac249799ac1879b2d4bd111e75dbfa 100644 |
--- a/test/cctest/compiler/test-scheduler.cc |
+++ b/test/cctest/compiler/test-scheduler.cc |
@@ -203,12 +203,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); |
} |
@@ -656,7 +657,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); |