Continue slp vectorization even the BB already has vectorized store radar://16641956

llvm-svn: 207572
This commit is contained in:
Yi Jiang
2014-04-29 19:37:20 +00:00
parent 4e234aa790
commit 1a3f18b161
2 changed files with 32 additions and 1 deletions

View File

@@ -2116,7 +2116,7 @@ unsigned SLPVectorizer::collectStores(BasicBlock *BB, BoUpSLP &R) {
// Check that the pointer points to scalars.
Type *Ty = SI->getValueOperand()->getType();
if (Ty->isAggregateType() || Ty->isVectorTy())
return 0;
continue;
// Find the base pointer.
Value *Ptr = GetUnderlyingObject(SI->getPointerOperand(), DL);