summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/Thumb2InstrInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-02-21 23:40:47 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-02-21 23:40:47 +0000
commit557b297f35395a6104a77ed6a798f10c2b46bfbe (patch)
tree1b6657b2d840b7beb864b2861baf3da78a0492bc /lib/Target/ARM/Thumb2InstrInfo.cpp
parentcf13af6fdee302c2cc8628ae95b40b2bccfdde4b (diff)
downloadllvm-557b297f35395a6104a77ed6a798f10c2b46bfbe.tar.gz
llvm-557b297f35395a6104a77ed6a798f10c2b46bfbe.tar.bz2
llvm-557b297f35395a6104a77ed6a798f10c2b46bfbe.tar.xz
Skipping over debugvalue instructions to determine whether the split spot is in a IT block. rdar://9030770
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/Thumb2InstrInfo.cpp')
-rw-r--r--lib/Target/ARM/Thumb2InstrInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/ARM/Thumb2InstrInfo.cpp b/lib/Target/ARM/Thumb2InstrInfo.cpp
index 2f67257f8f..836c1baffd 100644
--- a/lib/Target/ARM/Thumb2InstrInfo.cpp
+++ b/lib/Target/ARM/Thumb2InstrInfo.cpp
@@ -95,6 +95,9 @@ Thumb2InstrInfo::ReplaceTailWithBranchTo(MachineBasicBlock::iterator Tail,
bool
Thumb2InstrInfo::isLegalToSplitMBBAt(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MBBI) const {
+ while (MBBI->isDebugValue())
+ ++MBBI;
+
unsigned PredReg = 0;
return llvm::getITInstrPredicate(MBBI, PredReg) == ARMCC::AL;
}