diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-03-24 23:55:16 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-03-24 23:55:16 +0000 |
commit | e40b51cd8322c5b9f51ffbc1589280db05f7d97b (patch) | |
tree | 33103e01d816f0d40e260b051d3404fcf8a5df90 /lib | |
parent | f068865fca6c1da137bad228b52a77635687752f (diff) | |
download | external_llvm-e40b51cd8322c5b9f51ffbc1589280db05f7d97b.zip external_llvm-e40b51cd8322c5b9f51ffbc1589280db05f7d97b.tar.gz external_llvm-e40b51cd8322c5b9f51ffbc1589280db05f7d97b.tar.bz2 |
Remove an unneeded test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 9feefb9..2229743 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -770,7 +770,7 @@ SDOperand DAGCombiner::combine(SDNode *N) { SDOperand Ops[] = { N1, N0 }; SDNode *CSENode = DAG.getNodeIfExists(N->getOpcode(), N->getVTList(), Ops, 2); - if (CSENode && CSENode->use_size() <= N->use_size()) + if (CSENode) return SDOperand(CSENode, 0); } } |