mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
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
This commit is contained in:
parent
93c53f4d24
commit
559e456504
@ -283,7 +283,7 @@ ARMBaseInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB,MachineBasicBlock *&TBB,
|
|||||||
|
|
||||||
// Walk backwards from the end of the basic block until the branch is
|
// Walk backwards from the end of the basic block until the branch is
|
||||||
// analyzed or we give up.
|
// 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
|
// 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
|
// where we want to clean up on the end of the basic block before we bail
|
||||||
|
Loading…
x
Reference in New Issue
Block a user