Revert commit 122654 at the request of Chris, who reckons that instsimplify

is the wrong hammer for this nail, and is probably right.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122661 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands
2011-01-01 20:08:02 +00:00
parent a64cbf067d
commit 124708d9b4
3 changed files with 63 additions and 133 deletions

View File

@@ -1,9 +0,0 @@
; RUN: opt < %s -instsimplify -S | FileCheck %s
define i1 @g(i32 %a) nounwind readnone {
; CHECK: @g
%add = shl i32 %a, 1
%mul = shl i32 %a, 1
%cmp = icmp ugt i32 %add, %mul
ret i1 %cmp
; CHECK: ret i1 false
}