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 | 73eb58e1a2f2738182448bc71f7b0021c15707dd (patch) | |
| tree | 6efb5fc561649c11466eda68e879430349f31f1b /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
| parent | a3caaee503c6993d2fb7b8a9ec5bc7dad77410df (diff) | |
| download | bcm5719-llvm-73eb58e1a2f2738182448bc71f7b0021c15707dd.tar.gz bcm5719-llvm-73eb58e1a2f2738182448bc71f7b0021c15707dd.zip | |
Simplify some code
llvm-svn: 27846
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index b9f50ddbe1c..d635747d801 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/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) |

