summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
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
commit87a9f19f9c180fa37c384fd95a677375abf07bfb (patch)
tree5dc6cc9dedf9bd4e69dbe92961748de3f19b7b54 /llvm/lib/Target/ARM
parentb8ed462ca215298e6b726ff6a7f798b9be37e35a (diff)
downloadbcm5719-llvm-87a9f19f9c180fa37c384fd95a677375abf07bfb.tar.gz
bcm5719-llvm-87a9f19f9c180fa37c384fd95a677375abf07bfb.zip
Skipping over debugvalue instructions to determine whether the split spot is in a IT block. rdar://9030770
llvm-svn: 126159
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/Thumb2InstrInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/Thumb2InstrInfo.cpp b/llvm/lib/Target/ARM/Thumb2InstrInfo.cpp
index 2f67257f8fa..836c1baffd4 100644
--- a/llvm/lib/Target/ARM/Thumb2InstrInfo.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud