Make tBX_RET and tBX_RET_vararg predicable.
authorJim Grosbach <grosbach@apple.com>
Fri, 8 Jul 2011 21:50:04 +0000 (21:50 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 8 Jul 2011 21:50:04 +0000 (21:50 +0000)
commit25e6d48220330d17875d0ae0ad6a45597d5ac36c
tree8f7e096da2b668fba274d022dd445c9a79b9e144
parentf29608267baf911ccff7015327839201bd1de529
Make tBX_RET and tBX_RET_vararg predicable.

The normal tBX instruction is predicable, so there's no reason the
pseudos for using it as a return shouldn't be. Gives us some nice code-gen
improvements as can be seen by the test changes. In particular, several
tests now have to disable if-conversion because it works too well and defeats
the test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134746 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMConstantIslandPass.cpp
lib/Target/ARM/ARMInstrThumb.td
lib/Target/ARM/Thumb1FrameLowering.cpp
test/CodeGen/Thumb2/machine-licm.ll
test/CodeGen/Thumb2/thumb2-bcc.ll
test/CodeGen/Thumb2/thumb2-branch.ll
test/CodeGen/Thumb2/thumb2-ifcvt1.ll