[llvm-commits] [llvm] r107073 - /llvm/trunk/lib/Target/ARM/Thumb2HazardRecognizer.cpp
Jim Grosbach
grosbach at apple.com
Mon Jun 28 14:29:17 PDT 2010
Author: grosbach
Date: Mon Jun 28 16:29:17 2010
New Revision: 107073
URL: http://llvm.org/viewvc/llvm-project?rev=107073&view=rev
Log:
tidy up style. no functional change.
Modified:
llvm/trunk/lib/Target/ARM/Thumb2HazardRecognizer.cpp
Modified: llvm/trunk/lib/Target/ARM/Thumb2HazardRecognizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb2HazardRecognizer.cpp?rev=107073&r1=107072&r2=107073&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb2HazardRecognizer.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb2HazardRecognizer.cpp Mon Jun 28 16:29:17 2010
@@ -41,9 +41,10 @@
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;
}
}
More information about the llvm-commits
mailing list