[llvm-commits] [llvm] r126159 - /llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp
Evan Cheng
evan.cheng at apple.com
Mon Feb 21 15:40:48 PST 2011
Author: evancheng
Date: Mon Feb 21 17:40:47 2011
New Revision: 126159
URL: http://llvm.org/viewvc/llvm-project?rev=126159&view=rev
Log:
Skipping over debugvalue instructions to determine whether the split spot is in a IT block. rdar://9030770
Modified:
llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp?rev=126159&r1=126158&r2=126159&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp Mon Feb 21 17:40:47 2011
@@ -95,6 +95,9 @@
bool
Thumb2InstrInfo::isLegalToSplitMBBAt(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MBBI) const {
+ while (MBBI->isDebugValue())
+ ++MBBI;
+
unsigned PredReg = 0;
return llvm::getITInstrPredicate(MBBI, PredReg) == ARMCC::AL;
}
More information about the llvm-commits
mailing list