aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commit4ca829e89567f002fc74eb0e3e532a7c7662e031 (patch)
treed378bc96ed1aeb7ed0e40fc7f61d46aad65ee203 /lib/CodeGen
parent4bb3f34b2296f0ec70751f332cf7ef96d2d30a48 (diff)
downloadexternal_llvm-4ca829e89567f002fc74eb0e3e532a7c7662e031.zip
external_llvm-4ca829e89567f002fc74eb0e3e532a7c7662e031.tar.gz
external_llvm-4ca829e89567f002fc74eb0e3e532a7c7662e031.tar.bz2
use ConstantVector::getSplat in a few places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 3aced0b..03e7f1a 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/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))) {