summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-01-26 07:15:22 +0000
committerCraig Topper <craig.topper@intel.com>2018-01-26 07:15:22 +0000
commitb5c45e050915d8debd1dc22417b59a4167d0ac56 (patch)
tree4d2aeffac99995050a7bd469cef5db09239944a2 /llvm/lib
parent77c507758585d665b2bd5294c766faf7b047db09 (diff)
downloadbcm5719-llvm-b5c45e050915d8debd1dc22417b59a4167d0ac56.tar.gz
bcm5719-llvm-b5c45e050915d8debd1dc22417b59a4167d0ac56.zip
[SelectionDAG] Replace a std::vector<SDValue> with a SmallVector.
It likely the number of elements in the type we're legalizing here is reasonably small. llvm-svn: 323505
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp
index 993465ae9dc..de0f2aa32f4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp
@@ -384,7 +384,7 @@ SDValue DAGTypeLegalizer::ExpandOp_BUILD_VECTOR(SDNode *N) {
// Build a vector of twice the length out of the expanded elements.
// For example <3 x i64> -> <6 x i32>.
- std::vector<SDValue> NewElts;
+ SmallVector<SDValue, 16> NewElts;
NewElts.reserve(NumElts*2);
for (unsigned i = 0; i < NumElts; ++i) {
OpenPOWER on IntegriCloud