diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2017-06-20 12:45:46 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2017-06-20 12:45:46 +0000 |
| commit | 4ccbd58d70b28153267f3482e9015d448f71d59a (patch) | |
| tree | d1fed2243cb9030e3e46b82c1af27a2e53e1bd20 | |
| parent | adca825dc14fcdda6425bebcb2f342ea45231ac5 (diff) | |
| download | bcm5719-llvm-4ccbd58d70b28153267f3482e9015d448f71d59a.tar.gz bcm5719-llvm-4ccbd58d70b28153267f3482e9015d448f71d59a.zip | |
[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
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | 2 | ||||
| -rw-r--r-- | llvm/test/Transforms/InstCombine/set.ll | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp index 3407cbeb404..0db032e5cc1 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp +++ b/llvm/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/llvm/test/Transforms/InstCombine/set.ll b/llvm/test/Transforms/InstCombine/set.ll index 1452015d2ef..f9f48cfa363 100644 --- a/llvm/test/Transforms/InstCombine/set.ll +++ b/llvm/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( |

