tidy up style. no functional change.
authorJim Grosbach <grosbach@apple.com>
Mon, 28 Jun 2010 21:29:17 +0000 (21:29 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 28 Jun 2010 21:29:17 +0000 (21:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107073 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/Thumb2HazardRecognizer.cpp

index 3fe31a2b4851bda04a0f5b29512304b440788652..172908da228a852414abe6c99d504712e19561de 100644 (file)
@@ -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;
     }
   }