diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-07-08 21:50:04 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-07-08 21:50:04 +0000 |
commit | 25e6d48220330d17875d0ae0ad6a45597d5ac36c (patch) | |
tree | 8f7e096da2b668fba274d022dd445c9a79b9e144 /lib/Target/ARM/ARMInstrThumb.td | |
parent | f29608267baf911ccff7015327839201bd1de529 (diff) | |
download | external_llvm-25e6d48220330d17875d0ae0ad6a45597d5ac36c.zip external_llvm-25e6d48220330d17875d0ae0ad6a45597d5ac36c.tar.gz external_llvm-25e6d48220330d17875d0ae0ad6a45597d5ac36c.tar.bz2 |
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
Diffstat (limited to 'lib/Target/ARM/ARMInstrThumb.td')
-rw-r--r-- | lib/Target/ARM/ARMInstrThumb.td | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td index 9a96dc7..bba0ab6 100644 --- a/lib/Target/ARM/ARMInstrThumb.td +++ b/lib/Target/ARM/ARMInstrThumb.td @@ -385,13 +385,13 @@ let isBranch = 1, isTerminator = 1, isBarrier = 1, isIndirectBranch = 1 in { } let isReturn = 1, isTerminator = 1, isBarrier = 1 in { - def tBX_RET : tPseudoExpand<(outs), (ins), Size2Bytes, IIC_Br, - [(ARMretflag)], (tBX LR, (ops 14, zero_reg))>; + def tBX_RET : tPseudoExpand<(outs), (ins pred:$p), Size2Bytes, IIC_Br, + [(ARMretflag)], (tBX LR, pred:$p)>; // Alternative return instruction used by vararg functions. - def tBX_RET_vararg : tPseudoExpand<(outs), (ins tGPR:$Rm), + def tBX_RET_vararg : tPseudoExpand<(outs), (ins tGPR:$Rm, pred:$p), Size2Bytes, IIC_Br, [], - (tBX GPR:$Rm, (ops 14, zero_reg))>; + (tBX GPR:$Rm, pred:$p)>; } // All calls clobber the non-callee saved registers. SP is marked as a use to |