Fix an incorrectly inverted condition.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 16 Nov 2006 00:08:20 +0000 (00:08 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 16 Nov 2006 00:08:20 +0000 (00:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31773 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 46f14b98df13c126d3fa4bfa7302366c86f67fdf..b74fbaece58f644ba9034aeec5bf603519fd8406 100644 (file)
@@ -2856,7 +2856,7 @@ bool DAGCombiner::CombineToPostIndexedLoadStore(SDNode *N) {
   } else
     return false;
 
-  if (!Ptr.Val->hasOneUse())
+  if (Ptr.Val->hasOneUse())
     return false;
   
   for (SDNode::use_iterator I = Ptr.Val->use_begin(),
index f9a39293ed113c7acbf8c70adc272f2799b203a1..9528cb43c85f1004907e3b311812684cca2ba8e3 100644 (file)
@@ -1481,7 +1481,6 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
   // Perform various simplifications.
   ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1.Val);
   ConstantSDNode *N2C = dyn_cast<ConstantSDNode>(N2.Val);
-  //ConstantSDNode *N3C = dyn_cast<ConstantSDNode>(N3.Val);
   switch (Opcode) {
   case ISD::SETCC: {
     // Use FoldSetCC to simplify SETCC's.