diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2016-04-07 16:11:44 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2016-04-07 16:11:44 +0000 |
commit | 05fbbee99ef2dad65bccf1dd2a8ebbf0e36dcdea (patch) | |
tree | 9f0427553ad9bbeb0bd3643546740f92c6a8c762 /test/CodeGen/SystemZ/memchr-01.ll | |
parent | a2a5c796cb6f7870e68daac2abded302d12cf458 (diff) |
[SystemZ] Implement conditional returns
Return is now considered a predicable instruction, and is converted
to a newly-added CondReturn (which maps to BCR to %r14) instruction by
the if conversion pass.
Also, fused compare-and-branch transform knows about conditional
returns, emitting the proper fused instructions for them.
This transform triggers on a *lot* of tests, hence the huge diffstat.
The changes are mostly jX to br %r14 -> bXr %r14.
Author: koriakin
Differential Revision: http://reviews.llvm.org/D17339
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265689 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SystemZ/memchr-01.ll')
-rw-r--r-- | test/CodeGen/SystemZ/memchr-01.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/SystemZ/memchr-01.ll b/test/CodeGen/SystemZ/memchr-01.ll index f7509c4f256..f4d381b37f2 100644 --- a/test/CodeGen/SystemZ/memchr-01.ll +++ b/test/CodeGen/SystemZ/memchr-01.ll @@ -13,7 +13,7 @@ define i8 *@f1(i8 *%src, i16 %char, i32 %len) { ; CHECK: [[LABEL:\.[^:]*]]: ; CHECK: srst %r2, [[REG]] ; CHECK-NEXT: jo [[LABEL]] -; CHECK: jl {{\.L.*}} +; CHECK: blr %r14 ; CHECK: lghi %r2, 0 ; CHECK: br %r14 %res = call i8 *@memchr(i8 *%src, i16 %char, i32 %len) |