From 2afde7782dfa56b2e46f79598bdb5f1e09471941 Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Wed, 6 Jun 2012 23:53:03 +0000 Subject: 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 --- test/CodeGen/X86/jump_sign.ll | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'test/CodeGen/X86/jump_sign.ll') 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 -} -- cgit v1.2.3