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 /llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | |
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
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | 2 |
1 files changed, 1 insertions, 1 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); } |