1
0
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:
Sanjay Patel 2017-06-20 12:45:46 +00:00
parent b1e57ed5ec
commit 2cd42e59fa
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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(