[llvm-commits] [llvm] r152172 - /llvm/trunk/lib/CodeGen/MachineScheduler.cpp
Andrew Trick
atrick at apple.com
Tue Mar 6 16:18:05 PST 2012
Author: atrick
Date: Tue Mar 6 18:18:05 2012
New Revision: 152172
URL: http://llvm.org/viewvc/llvm-project?rev=152172&view=rev
Log:
misched: Use the StartBlock/FinishBlock hooks
Modified:
llvm/trunk/lib/CodeGen/MachineScheduler.cpp
Modified: llvm/trunk/lib/CodeGen/MachineScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineScheduler.cpp?rev=152172&r1=152171&r2=152172&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Tue Mar 6 18:18:05 2012
@@ -264,6 +264,7 @@
unsigned RemainingCount = MBB->size();
for(MachineBasicBlock::iterator RegionEnd = MBB->end();
RegionEnd != MBB->begin();) {
+ Scheduler->StartBlock(MBB);
// The next region starts above the previous region. Look backward in the
// instruction stream until we find the nearest boundary.
MachineBasicBlock::iterator I = RegionEnd;
@@ -294,6 +295,7 @@
RegionEnd = Scheduler->Begin;
}
assert(RemainingCount == 0 && "Instruction count mismatch!");
+ Scheduler->FinishBlock();
}
return true;
}
More information about the llvm-commits
mailing list