aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-29 16:18:12 +0000
committerDan Gohman <gohman@apple.com>2009-01-29 16:18:12 +0000
commit2c65c3dfe6589a630d1bdde085aec1b9cdc43ea8 (patch)
tree996bb8f22d6bcdae2baf2d993d19fedf76a16f36 /lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent197e88f7963946dfdb4770ed27ee246eb087ca10 (diff)
Fix two typos that Duncan spotted in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index e479e05bdd..1f9d9cf9a7 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -1815,7 +1815,7 @@ TargetLowering::SimplifySetCC(MVT VT, SDValue N0, SDValue N1,
}
}
- // Simpify x&y == y to x&y == 0 if y has exactly one bit set.
+ // Simplify x&y == y to x&y != 0 if y has exactly one bit set.
if (N0.getOpcode() == ISD::AND)
if (N0.getOperand(0) == N1 || N0.getOperand(1) == N1) {
if (ValueHasAtMostOneBitSet(N1, DAG)) {