mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Revert a part of r223583, for now. It seems causing different emission between stage2(gcc-clang) and stage3 clang. Investigating.
llvm-svn: 223624
This commit is contained in:
parent
e41b3dbd9c
commit
953adcfdf0
@ -1476,11 +1476,6 @@ static Value *simplifyUnsignedRangeCheck(ICmpInst *ZeroICmp,
|
||||
return UnsignedICmp;
|
||||
}
|
||||
|
||||
// X < Y && Y == 0 --> false
|
||||
if (UnsignedPred == ICmpInst::ICMP_ULT && EqPred == ICmpInst::ICMP_EQ &&
|
||||
IsAnd)
|
||||
return getFalse(UnsignedICmp->getType());
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -166,15 +166,6 @@ define i1 @and_icmp1(i32 %x, i32 %y) {
|
||||
; CHECK: %[[cmp:.*]] = icmp ult i32 %x, %y
|
||||
; CHECK: ret i1 %[[cmp]]
|
||||
|
||||
define i1 @and_icmp2(i32 %x, i32 %y) {
|
||||
%1 = icmp ult i32 %x, %y
|
||||
%2 = icmp eq i32 %y, 0
|
||||
%3 = and i1 %1, %2
|
||||
ret i1 %3
|
||||
}
|
||||
; CHECK-LABEL: @and_icmp2(
|
||||
; CHECK: ret i1 false
|
||||
|
||||
define i1 @or_icmp1(i32 %x, i32 %y) {
|
||||
%1 = icmp ult i32 %x, %y
|
||||
%2 = icmp ne i32 %y, 0
|
||||
|
Loading…
Reference in New Issue
Block a user