diff options
author | Chris Lattner <sabre@nondot.org> | 2006-04-19 23:17:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-04-19 23:17:50 +0000 |
commit | 89a1b380a475cbe477e50ff4b94335596b37f21a (patch) | |
tree | 25a7409fd4789442635dce5b01b546514222841a | |
parent | 80d428c3706a38347663f2185cd99eae97d0c8a1 (diff) |
Simplify some code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27846 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index b9f50ddbe1..d635747d80 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -3430,11 +3430,7 @@ SDOperand SelectionDAGLegalize::ExpandBUILD_VECTOR(SDNode *Node) { for (unsigned i = 1; i < NumElems; ++i) { SDOperand V = Node->getOperand(i); - std::map<SDOperand, std::vector<unsigned> >::iterator I = Values.find(V); - if (I != Values.end()) - I->second.push_back(i); - else - Values[V].push_back(i); + Values[V].push_back(i); if (V.getOpcode() != ISD::UNDEF) isOnlyLowElement = false; if (SplatValue != V) |