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 /test/CodeGen/Thumb2/thumb2-branch.ll | |
parent | f29608267baf911ccff7015327839201bd1de529 (diff) | |
download | llvm-25e6d48220330d17875d0ae0ad6a45597d5ac36c.tar.gz llvm-25e6d48220330d17875d0ae0ad6a45597d5ac36c.tar.bz2 llvm-25e6d48220330d17875d0ae0ad6a45597d5ac36c.tar.xz |
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 'test/CodeGen/Thumb2/thumb2-branch.ll')
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-branch.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-branch.ll b/test/CodeGen/Thumb2/thumb2-branch.ll index 1d2af7a547..9c6f68b343 100644 --- a/test/CodeGen/Thumb2/thumb2-branch.ll +++ b/test/CodeGen/Thumb2/thumb2-branch.ll @@ -1,4 +1,6 @@ -; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mattr=+thumb2 | FileCheck %s +; RUN: llc < %s -ifcvt-limit=0 -mtriple=thumbv7-apple-darwin -mattr=+thumb2 | FileCheck %s +; If-conversion defeats the purpose of this test, which is to check conditional +; branch generation, so turn it off. define i32 @f1(i32 %a, i32 %b, i32* %v) { entry: |