commit | a78fa8cc2dd6d2ffe5e4fe605f38aae7b3d2fb7a | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Jan 27 03:08:05 2012 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Jan 27 03:08:05 2012 +0000 |
tree | 86baf632ff9cede6ae0504249b7075282f9fa227 | |
parent | 2b343702aac08ddff4191890a8745616022c831f [diff] [blame] |
continue making the world safe for ConstantDataVector. At this point, we should (theoretically optimize and codegen ConstantDataVector as well as ConstantVector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149116 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp b/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp index 6873d15..61a8e5b 100644 --- a/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp +++ b/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
@@ -982,7 +982,7 @@ if (NewUndefElts) { // Add additional discovered undefs. - std::vector<Constant*> Elts; + SmallVector<Constant*, 16> Elts; for (unsigned i = 0; i < VWidth; ++i) { if (UndefElts[i]) Elts.push_back(UndefValue::get(Type::getInt32Ty(I->getContext())));