[llvm] r189264 - Fix unused variable in release build
Matt Arsenault
Matthew.Arsenault at amd.com
Mon Aug 26 11:38:29 PDT 2013
Author: arsenm
Date: Mon Aug 26 13:38:29 2013
New Revision: 189264
URL: http://llvm.org/viewvc/llvm-project?rev=189264&view=rev
Log:
Fix unused variable in release build
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=189264&r1=189263&r2=189264&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Mon Aug 26 13:38:29 2013
@@ -1141,10 +1141,9 @@ Value *BoUpSLP::vectorizeTree(TreeEntry
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
if (Value *V = alreadyVectorized(E->Scalars))
return V;
-
+
Value *V = Builder.CreateSelect(Cond, True, False);
E->VectorizedValue = V;
return V;
More information about the llvm-commits
mailing list