diff options
author | Manman Ren <mren@apple.com> | 2012-06-06 23:53:03 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-06-06 23:53:03 +0000 |
commit | 2afde7782dfa56b2e46f79598bdb5f1e09471941 (patch) | |
tree | c3a07b4c2b416d79bd3e0dc7462b07f5e45a1547 /test/CodeGen/X86/jump_sign.ll | |
parent | aed04d12f8e336d4960b49ad8d09ac2eb5785f1f (diff) | |
download | llvm-2afde7782dfa56b2e46f79598bdb5f1e09471941.tar.gz llvm-2afde7782dfa56b2e46f79598bdb5f1e09471941.tar.bz2 llvm-2afde7782dfa56b2e46f79598bdb5f1e09471941.tar.xz |
Revert r157755.
The commit is intended to fix rdar://11540023.
It is implemented as part of peephole optimization. We can actually implement
this in the SelectionDAG lowering phase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/jump_sign.ll')
-rw-r--r-- | test/CodeGen/X86/jump_sign.ll | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test/CodeGen/X86/jump_sign.ll b/test/CodeGen/X86/jump_sign.ll index cf5408e071..94cbe5d193 100644 --- a/test/CodeGen/X86/jump_sign.ll +++ b/test/CodeGen/X86/jump_sign.ll @@ -83,14 +83,3 @@ entry: %cond = select i1 %cmp, i32 %sub, i32 0 ret i32 %cond } -; rdar://11540023 -define i64 @n(i64 %x, i64 %y) nounwind { -entry: -; CHECK: n: -; CHECK-NOT: sub -; CHECK: cmp - %sub = sub nsw i64 %x, %y - %cmp = icmp slt i64 %sub, 0 - %y.x = select i1 %cmp, i64 %y, i64 %x - ret i64 %y.x -} |