summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2013-12-20 20:27:51 +0000
committerLang Hames <lhames@gmail.com>2013-12-20 20:27:51 +0000
commit18c98a587ff470adb10d25c086dfc829b0add08f (patch)
tree2bd2abae72abca19c27cbdedbd325c170ea6cf08
parentf4e2238119e96a4e83eed0c14c7f0c5113faf63b (diff)
downloadbcm5719-llvm-18c98a587ff470adb10d25c086dfc829b0add08f.tar.gz
bcm5719-llvm-18c98a587ff470adb10d25c086dfc829b0add08f.zip
ARM AnalyzeBranch should ignore DEBUG_VALUES while analyzing terminators.
Found by inspection by Julien Lerouge. Thanks Julian! llvm-svn: 197833
-rw-r--r--llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index c532229dd91..c0478260f51 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -283,7 +283,7 @@ ARMBaseInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB,MachineBasicBlock *&TBB,
// Walk backwards from the end of the basic block until the branch is
// analyzed or we give up.
- while (isPredicated(I) || I->isTerminator()) {
+ while (isPredicated(I) || I->isTerminator() || I->isDebugValue()) {
// Flag to be raised on unanalyzeable instructions. This is useful in cases
// where we want to clean up on the end of the basic block before we bail
OpenPOWER on IntegriCloud