mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 07:31:53 +00:00
[InstCombine] regenerate checks; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291469 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
edac66f29b
commit
fe1696d23d
@ -152,29 +152,28 @@ entry:
|
||||
}
|
||||
|
||||
define i32 @icmp1(i32 %a) #0 {
|
||||
entry:
|
||||
; CHECK-LABEL: @icmp1(
|
||||
; CHECK-NEXT: [[CMP:%.*]] = icmp sgt i32 [[A:%.*]], 5
|
||||
; CHECK-NEXT: tail call void @llvm.assume(i1 [[CMP]])
|
||||
; CHECK-NEXT: ret i32 1
|
||||
;
|
||||
%cmp = icmp sgt i32 %a, 5
|
||||
tail call void @llvm.assume(i1 %cmp)
|
||||
%conv = zext i1 %cmp to i32
|
||||
ret i32 %conv
|
||||
|
||||
; CHECK-LABEL: @icmp1
|
||||
; CHECK: call void @llvm.assume
|
||||
; CHECK: ret i32 1
|
||||
|
||||
}
|
||||
|
||||
define i32 @icmp2(i32 %a) #0 {
|
||||
entry:
|
||||
; CHECK-LABEL: @icmp2(
|
||||
; CHECK-NEXT: [[CMP:%.*]] = icmp sgt i32 [[A:%.*]], 5
|
||||
; CHECK-NEXT: tail call void @llvm.assume(i1 [[CMP]])
|
||||
; CHECK-NEXT: ret i32 0
|
||||
;
|
||||
%cmp = icmp sgt i32 %a, 5
|
||||
tail call void @llvm.assume(i1 %cmp)
|
||||
%0 = zext i1 %cmp to i32
|
||||
%lnot.ext = xor i32 %0, 1
|
||||
%t0 = zext i1 %cmp to i32
|
||||
%lnot.ext = xor i32 %t0, 1
|
||||
ret i32 %lnot.ext
|
||||
|
||||
; CHECK-LABEL: @icmp2
|
||||
; CHECK: call void @llvm.assume
|
||||
; CHECK: ret i32 0
|
||||
}
|
||||
|
||||
declare void @escape(i32* %a)
|
||||
|
Loading…
Reference in New Issue
Block a user