summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-25 06:02:56 +0000
committerChris Lattner <sabre@nondot.org>2012-01-25 06:02:56 +0000
commit47a86bdbe2e5542a35278151a772d4ae7811088d (patch)
tree1e34020e9e2f81c25ccb367fa52a3ae528530526 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parentf07b612313702d86caab5011864140260e12d0bd (diff)
downloadbcm5719-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.cpp2
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))) {
OpenPOWER on IntegriCloud