diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2006-11-16 00:08:20 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-16 00:08:20 +0000 |
| commit | f64da389f8f1e2b858585dc35bd32f039158c2e3 (patch) | |
| tree | 9b84a7d11145a1d564d67f37f45927f93d69aaf9 /llvm/lib/CodeGen | |
| parent | 8ae58b5828ad8063462fee0854cc9a700392dd1d (diff) | |
| download | bcm5719-llvm-f64da389f8f1e2b858585dc35bd32f039158c2e3.tar.gz bcm5719-llvm-f64da389f8f1e2b858585dc35bd32f039158c2e3.zip | |
Fix an incorrectly inverted condition.
llvm-svn: 31773
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 46f14b98df1..b74fbaece58 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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(), diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index f9a39293ed1..9528cb43c85 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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. |

