diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-06-28 21:29:17 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-06-28 21:29:17 +0000 |
commit | f31c004666a4e507d1a3fee0272ee51634dcfd78 (patch) | |
tree | 4c2161300f5a06c20cd7bc2bdbaa9ff12fd8f466 | |
parent | 7c34ece501ef170fdc77af3a6c63866d1034bbdc (diff) | |
download | bcm5719-llvm-f31c004666a4e507d1a3fee0272ee51634dcfd78.tar.gz bcm5719-llvm-f31c004666a4e507d1a3fee0272ee51634dcfd78.zip |
tidy up style. no functional change.
llvm-svn: 107073
-rw-r--r-- | llvm/lib/Target/ARM/Thumb2HazardRecognizer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/Thumb2HazardRecognizer.cpp b/llvm/lib/Target/ARM/Thumb2HazardRecognizer.cpp index 3fe31a2b485..172908da228 100644 --- a/llvm/lib/Target/ARM/Thumb2HazardRecognizer.cpp +++ b/llvm/lib/Target/ARM/Thumb2HazardRecognizer.cpp @@ -41,9 +41,10 @@ void Thumb2HazardRecognizer::EmitInstruction(SUnit *SU) { ITBlockSize = 4 - NumTZ; MachineBasicBlock::iterator I = MI; for (unsigned i = 0; i < ITBlockSize; ++i) { - ++I; - while (I->isDebugValue()) + // Advance to the next instruction, skipping any dbg_value instructions. + do { ++I; + } while (I->isDebugValue()); ITBlockMIs[ITBlockSize-1-i] = &*I; } } |