diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-25 06:02:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-25 06:02:56 +0000 |
commit | 47a86bdbe2e5542a35278151a772d4ae7811088d (patch) | |
tree | 1e34020e9e2f81c25ccb367fa52a3ae528530526 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | f07b612313702d86caab5011864140260e12d0bd (diff) | |
download | bcm5719-llvm-47a86bdbe2e5542a35278151a772d4ae7811088d.tar.gz bcm5719-llvm-47a86bdbe2e5542a35278151a772d4ae7811088d.zip |
use ConstantVector::getSplat in a few places.
llvm-svn: 148929
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 3aced0b02ab..03e7f1a987e 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1699,7 +1699,7 @@ SDValue SelectionDAGLegalize::ExpandBUILD_VECTOR(SDNode *Node) { // If all elements are constants, create a load from the constant pool. if (isConstant) { - std::vector<Constant*> CV; + SmallVector<Constant*, 16> CV; for (unsigned i = 0, e = NumElems; i != e; ++i) { if (ConstantFPSDNode *V = dyn_cast<ConstantFPSDNode>(Node->getOperand(i))) { |