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 | 7799eb40d43a1b0b0fef10bfcd7963f9cfe6c362 (patch) | |
tree | 550f59b3af8003524c956d1e6576b6c4adbd7f36 | |
parent | 005874056e536324cba9fa253d7e14a6f9dcf4fa (diff) | |
download | external_llvm-7799eb40d43a1b0b0fef10bfcd7963f9cfe6c362.zip external_llvm-7799eb40d43a1b0b0fef10bfcd7963f9cfe6c362.tar.gz external_llvm-7799eb40d43a1b0b0fef10bfcd7963f9cfe6c362.tar.bz2 |
revert 152356: verify misched changes using -misched=shuffle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152373 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/MachineScheduler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineScheduler.cpp b/lib/CodeGen/MachineScheduler.cpp index f892192..6090ffe 100644 --- a/lib/CodeGen/MachineScheduler.cpp +++ b/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; } |