summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-06-20 12:45:46 +0000
committerSanjay Patel <spatel@rotateright.com>2017-06-20 12:45:46 +0000
commit4ccbd58d70b28153267f3482e9015d448f71d59a (patch)
treed1fed2243cb9030e3e46b82c1af27a2e53e1bd20 /llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
parentadca825dc14fcdda6425bebcb2f342ea45231ac5 (diff)
downloadbcm5719-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.cpp2
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);
}
OpenPOWER on IntegriCloud