Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index aefe173938b974f4f1b966f5da256f0bda4aefb7..bd99944149ec4adab18c97b2f9f3f85242888131 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -248,11 +248,9 @@ Handle<Code> Pipeline::GenerateCode() { |
VerifyAndPrintGraph(&graph, "Lowered generic"); |
} |
- // Compute a schedule. |
- Schedule* schedule = ComputeSchedule(&graph); |
- TraceSchedule(schedule); |
- |
{ |
+ // Compute a schedule. |
+ Schedule* schedule = ComputeSchedule(&graph); |
// Generate optimized code. |
PhaseStats codegen_stats(info(), PhaseStats::CODEGEN, "codegen"); |
Linkage linkage(info()); |
@@ -278,7 +276,10 @@ Handle<Code> Pipeline::GenerateCode() { |
Schedule* Pipeline::ComputeSchedule(Graph* graph) { |
PhaseStats schedule_stats(info(), PhaseStats::CODEGEN, "scheduling"); |
- return Scheduler::ComputeSchedule(graph); |
+ Schedule* schedule = Scheduler::ComputeSchedule(graph); |
+ TraceSchedule(schedule); |
+ if (VerifyGraphs()) ScheduleVerifier::Run(schedule); |
+ return schedule; |
} |