summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.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/Transforms/InstCombine/InstCombineMulDivRem.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/Transforms/InstCombine/InstCombineMulDivRem.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
index 2f82b7b4a91..122f9486c8e 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
@@ -698,7 +698,7 @@ Instruction *InstCombiner::visitSRem(BinaryOperator &I) {
hasNegative = true;
if (hasNegative) {
- std::vector<Constant *> Elts(VWidth);
+ SmallVector<Constant *, 16> Elts(VWidth);
for (unsigned i = 0; i != VWidth; ++i) {
if (ConstantInt *RHS = dyn_cast<ConstantInt>(RHSV->getOperand(i))) {
if (RHS->isNegative())
OpenPOWER on IntegriCloud