commit | 4ca829e89567f002fc74eb0e3e532a7c7662e031 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Jan 25 06:02:56 2012 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Jan 25 06:02:56 2012 +0000 |
tree | d378bc96ed1aeb7ed0e40fc7f61d46aad65ee203 | |
parent | 4bb3f34b2296f0ec70751f332cf7ef96d2d30a48 [diff] [blame] |
use ConstantVector::getSplat in a few places. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148929 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp index 2f82b7b..122f948 100644 --- a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp +++ b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
@@ -698,7 +698,7 @@ 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())