summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMBaseInstrInfo.cpp
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
commit559e4565046ed4a8c669a7eea0330966cbfd6f6d (patch)
tree4ebf2c370d0377ad7de5307888fbf5af3ad31500 /lib/Target/ARM/ARMBaseInstrInfo.cpp
parent93c53f4d2430ac6ed78913428519944becfb1b05 (diff)
downloadllvm-559e4565046ed4a8c669a7eea0330966cbfd6f6d.tar.gz
llvm-559e4565046ed4a8c669a7eea0330966cbfd6f6d.tar.bz2
llvm-559e4565046ed4a8c669a7eea0330966cbfd6f6d.tar.xz
ARM AnalyzeBranch should ignore DEBUG_VALUES while analyzing terminators.
Found by inspection by Julien Lerouge. Thanks Julian! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseInstrInfo.cpp')
-rw-r--r--lib/Target/ARM/ARMBaseInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.cpp b/lib/Target/ARM/ARMBaseInstrInfo.cpp
index c532229dd9..c0478260f5 100644
--- a/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/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