diff options
author | Andrew Trick <atrick@apple.com> | 2012-03-09 03:46:39 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-03-09 03:46:39 +0000 |
commit | a21daf7f5b6b4e9a73adf2467470f4c6ddf75a4f (patch) | |
tree | 57a7c7244718d0cd4462cc474a6c45d8fcd3945f /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 1c8d2ca82996a1e6c6f3e827fa44fb2acde97c89 (diff) | |
download | bcm5719-llvm-a21daf7f5b6b4e9a73adf2467470f4c6ddf75a4f.tar.gz bcm5719-llvm-a21daf7f5b6b4e9a73adf2467470f4c6ddf75a4f.zip |
revert 152356: verify misched changes using -misched=shuffle.
llvm-svn: 152373
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index f8921922ed7..6090ffe27bb 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -144,13 +144,13 @@ bool MachineScheduler::runOnMachineFunction(MachineFunction &mf) { // Break the block into scheduling regions [I, RegionEnd), and schedule each // region as soon as it is discovered. unsigned RemainingCount = MBB->size(); - for(MachineBasicBlock::iterator RegionEnd = MBB->end(), - RegionStart = MBB->begin(); RegionEnd != RegionStart;) { + 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; - for(;I != RegionStart; --I, --RemainingCount) { + for(;I != MBB->begin(); --I, --RemainingCount) { if (TII->isSchedulingBoundary(llvm::prior(I), MBB, *MF)) break; } |