]> granicus.if.org Git - llvm/commitdiff
[InstCombine] fix code/test comments for r305792; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 20 Jun 2017 12:45:46 +0000 (12:45 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 20 Jun 2017 12:45:46 +0000 (12:45 +0000)
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

lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/set.ll

index 3407cbeb4045e7a58494ab381230f8afc318ee16..0db032e5cc1f9c41b9a4688c8c54bdf0f2ba77b4 100644 (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);
       }
index 1452015d2ef8bf77912916fa751b464e452986e7..f9f48cfa3637fab3e66e9dfbb6b672f26c9c525a 100644 (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(