summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-04-03 19:18:48 +0000
committerCraig Topper <craig.topper@gmail.com>2017-04-03 19:18:48 +0000
commit3882613956e9dff20cdff468668034a515144b58 (patch)
tree038a0de7839a4d37a9d0e3ef33e9f695dacd12c6 /llvm/lib/CodeGen
parentc49bb0f418f3bfb958ce50d1e0e2eeb4c1ef65db (diff)
downloadbcm5719-llvm-3882613956e9dff20cdff468668034a515144b58.tar.gz
bcm5719-llvm-3882613956e9dff20cdff468668034a515144b58.zip
[DAGCombine][InstCombine] Fix inverted if condition in equivalent comments in DAGCombine and InstCombine. NFC
llvm-svn: 299378
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 779a0b5c8bd..0b4fb90bc8c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -4179,7 +4179,7 @@ SDValue DAGCombiner::visitOR(SDNode *N) {
if (SDValue ROR = ReassociateOps(ISD::OR, SDLoc(N), N0, N1))
return ROR;
// Canonicalize (or (and X, c1), c2) -> (and (or X, c2), c1|c2)
- // iff (c1 & c2) == 0.
+ // iff (c1 & c2) != 0.
if (N1C && N0.getOpcode() == ISD::AND && N0.getNode()->hasOneUse() &&
isa<ConstantSDNode>(N0.getOperand(1))) {
ConstantSDNode *C1 = cast<ConstantSDNode>(N0.getOperand(1));
OpenPOWER on IntegriCloud