From: Sanjay Patel Date: Tue, 20 Jun 2017 12:45:46 +0000 (+0000) Subject: [InstCombine] fix code/test comments for r305792; NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=031043b24307788fe87074bd8a0b22ea7756ccfd;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305793 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp index 3407cbeb404..0db032e5cc1 100644 --- a/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp +++ b/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp @@ -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); } diff --git a/test/Transforms/InstCombine/set.ll b/test/Transforms/InstCombine/set.ll index 1452015d2ef..f9f48cfa363 100644 --- a/test/Transforms/InstCombine/set.ll +++ b/test/Transforms/InstCombine/set.ll @@ -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(