Continue slp vectorization even the BB already has vectorized store radar://16641956
llvm-svn: 207572
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user