diff options
author | Yi Jiang <yjiang@apple.com> | 2014-04-29 19:37:20 +0000 |
---|---|---|
committer | Yi Jiang <yjiang@apple.com> | 2014-04-29 19:37:20 +0000 |
commit | 1a3f18b161dce9d9672b18a47e2432210b10c63e (patch) | |
tree | cc748ffb64608743c5b0ca5f7b2ba8e43a8f7d68 /llvm/lib | |
parent | 4e234aa790eb457c0664f4fcab8d67a5f2638bcb (diff) | |
download | bcm5719-llvm-1a3f18b161dce9d9672b18a47e2432210b10c63e.tar.gz bcm5719-llvm-1a3f18b161dce9d9672b18a47e2432210b10c63e.zip |
Continue slp vectorization even the BB already has vectorized store radar://16641956
llvm-svn: 207572
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 21a727bfb3b..53feb959c80 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -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); |