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 | 7471937ad7d1d5263db0bb992bb96b6aa1bd6237 (patch) | |
tree | 222ab9bbb68d34f785abc03dd9f975688989f8f3 /llvm/lib/Target/ARM/Thumb1FrameLowering.cpp | |
parent | 884fb69460ed9e09b3c363ab280e5051e49cc29d (diff) | |
download | bcm5719-llvm-7471937ad7d1d5263db0bb992bb96b6aa1bd6237.tar.gz bcm5719-llvm-7471937ad7d1d5263db0bb992bb96b6aa1bd6237.zip |
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.
llvm-svn: 134746
Diffstat (limited to 'llvm/lib/Target/ARM/Thumb1FrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/Thumb1FrameLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp b/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp index 48211d852f8..c258870e48a 100644 --- a/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp +++ b/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp @@ -273,8 +273,8 @@ void Thumb1FrameLowering::emitEpilogue(MachineFunction &MF, emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, VARegSaveSize); - BuildMI(MBB, MBBI, dl, TII.get(ARM::tBX_RET_vararg)) - .addReg(ARM::R3, RegState::Kill); + AddDefaultPred(BuildMI(MBB, MBBI, dl, TII.get(ARM::tBX_RET_vararg)) + .addReg(ARM::R3, RegState::Kill)); // erase the old tBX_RET instruction MBB.erase(MBBI); } |