commit | e40b51cd8322c5b9f51ffbc1589280db05f7d97b | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Mon Mar 24 23:55:16 2008 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Mon Mar 24 23:55:16 2008 +0000 |
tree | 33103e01d816f0d40e260b051d3404fcf8a5df90 | |
parent | f068865fca6c1da137bad228b52a77635687752f [diff] [blame] |
Remove an unneeded test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48755 91177308-0d34-0410-b5e6-96231b3b80d8
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 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); } }