Conditional branch being fixed up is not the last MI in the BB, there is a
authorEvan Cheng <evan.cheng@apple.com>
Fri, 26 Jan 2007 20:38:26 +0000 (20:38 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 26 Jan 2007 20:38:26 +0000 (20:38 +0000)
commit43aeab68a69e443c528092b4424a498d813f96b7
tree62cd65ab5c3b6808a3ffa905c1315e25af12e5fb
parent38f682b8b2e4c78c193c505e5572abfcf9d3cb88
Conditional branch being fixed up is not the last MI in the BB, there is a
unconditional branch following it. Simply invert the condition and swap
destinations if the conditional branch can reach the destination of the
unconditional branch:
beq L1
b   L2
=>
bne L2
b   L1

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33548 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMConstantIslandPass.cpp