aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Vectorize
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-08-26 18:38:29 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-08-26 18:38:29 +0000
commit57aa3aad33b50583d5a82735777d0f0dc03ff122 (patch)
treee4bffb7b9cc2cb888444ade398a7994645f1f243 /lib/Transforms/Vectorize
parent8228a8dd91fbc4c1443bc3f15847ca8be24094a2 (diff)
downloadexternal_llvm-57aa3aad33b50583d5a82735777d0f0dc03ff122.zip
external_llvm-57aa3aad33b50583d5a82735777d0f0dc03ff122.tar.gz
external_llvm-57aa3aad33b50583d5a82735777d0f0dc03ff122.tar.bz2
Fix unused variable in release build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize')
-rw-r--r--lib/Transforms/Vectorize/SLPVectorizer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 0313e98..93376af 100644
--- a/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -1141,10 +1141,9 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) {
VectorType *VecTy = VectorType::get(ScalarTy, E->Scalars.size());
if (E->NeedToGather) {
- BasicBlock *BB = VL0->getParent();
BasicBlock::iterator NextInst = getLastInstruction(E->Scalars);
++NextInst;
- assert(NextInst != BB->end());
+ assert(NextInst != VL0->getParent()->end());
Builder.SetInsertPoint(NextInst);
return Gather(E->Scalars, VecTy);
}
@@ -1270,7 +1269,7 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) {
if (Value *V = alreadyVectorized(E->Scalars))
return V;
-
+
Value *V = Builder.CreateSelect(Cond, True, False);
E->VectorizedValue = V;
return V;