From: Evan Cheng Date: Mon, 21 Feb 2011 23:40:47 +0000 (+0000) Subject: Skipping over debugvalue instructions to determine whether the split spot is in a... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=557b297f35395a6104a77ed6a798f10c2b46bfbe;p=oota-llvm.git 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 --- diff --git a/lib/Target/ARM/Thumb2InstrInfo.cpp b/lib/Target/ARM/Thumb2InstrInfo.cpp index 2f67257f8fa..836c1baffd4 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; }