fix two comment thinkos
authorChris Lattner <sabre@nondot.org>
Mon, 14 Feb 2011 06:14:42 +0000 (06:14 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 14 Feb 2011 06:14:42 +0000 (06:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125481 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index f1c938965655b2b08d7c6b6c6afe1fbed610e110..ecb347e00bc4375edf75fcc0bd950a171ed0222e 100644 (file)
@@ -974,7 +974,7 @@ public:
   /// ISD::ADD with a ConstantSDNode on the right-hand side, or if it is an
   /// ISD::OR with a ConstantSDNode that is guaranteed to have the same
   /// semantics as an ADD.  This handles the equivalence:
-  ///     X|Cst == X+Cst iff X&~Cst = 0.
+  ///     X|Cst == X+Cst iff X&Cst = 0.
   bool isBaseWithConstantOffset(SDValue Op) const;
   
   /// isKnownNeverNan - Test whether the given SDValue is known to never be NaN.
index 501264f23d98a8127faac08a0f3da871f43579f2..e8dbe4efb3083afa95c3731d7ccc79f462acf924 100644 (file)
@@ -2292,7 +2292,7 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, unsigned Depth) const{
 /// ISD::ADD with a ConstantSDNode on the right-hand side, or if it is an
 /// ISD::OR with a ConstantSDNode that is guaranteed to have the same
 /// semantics as an ADD.  This handles the equivalence:
-///     X|Cst == X+Cst iff X&~Cst = 0.
+///     X|Cst == X+Cst iff X&Cst = 0.
 bool SelectionDAG::isBaseWithConstantOffset(SDValue Op) const {
   if ((Op.getOpcode() != ISD::ADD && Op.getOpcode() != ISD::OR) ||
       !isa<ConstantSDNode>(Op.getOperand(1)))