mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[InstCombine] fix code/test comments for r305792; NFC
These diffs were in the last version of the patch in D33342, but I accidentally committed the previous rev. llvm-svn: 305793
This commit is contained in:
parent
b1e57ed5ec
commit
2cd42e59fa
@ -2368,7 +2368,7 @@ Value *InstCombiner::foldXorOfICmps(ICmpInst *LHS, ICmpInst *RHS) {
|
||||
return Builder->CreateAnd(LHS, RHS);
|
||||
}
|
||||
if (OrICmp == RHS && AndICmp == LHS && LHS->hasOneUse()) {
|
||||
// !(LHS & RHS) & (LHS | RHS) --> !LHS & !RHS
|
||||
// !(LHS & RHS) & (LHS | RHS) --> !LHS & RHS
|
||||
LHS->setPredicate(LHS->getInversePredicate());
|
||||
return Builder->CreateAnd(LHS, RHS);
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ define i1 @bool_eq0(i64 %a) {
|
||||
ret i1 %and
|
||||
}
|
||||
|
||||
; FIXME: This is equivalent to the previous test.
|
||||
; This is equivalent to the previous test.
|
||||
|
||||
define i1 @xor_of_icmps(i64 %a) {
|
||||
; CHECK-LABEL: @xor_of_icmps(
|
||||
@ -173,7 +173,7 @@ define i1 @xor_of_icmps(i64 %a) {
|
||||
ret i1 %xor
|
||||
}
|
||||
|
||||
; FIXME: This is also equivalent to the previous test.
|
||||
; This is also equivalent to the previous test.
|
||||
|
||||
define i1 @xor_of_icmps_commute(i64 %a) {
|
||||
; CHECK-LABEL: @xor_of_icmps_commute(
|
||||
|
Loading…
x
Reference in New Issue
Block a user