diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-07-26 22:53:11 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-07-26 22:53:11 +0000 |
commit | a629c3a4f05a8e7976142577872aef95f88c86a0 (patch) | |
tree | c7ed4ca493d75e9987fdfdf2ada53af1a6a70fa0 /lib/Transforms | |
parent | c1bb2d432501dabdfcb1e78eccfb7377664c4d14 (diff) | |
download | external_llvm-a629c3a4f05a8e7976142577872aef95f88c86a0.zip external_llvm-a629c3a4f05a8e7976142577872aef95f88c86a0.tar.gz external_llvm-a629c3a4f05a8e7976142577872aef95f88c86a0.tar.bz2 |
SLP Vectorizer: Disable the vectorization of non power of two chains, such as <3 x float>, because we dont have a good cost model for these types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Vectorize/SLPVectorizer.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index 25f7a78..c1accd3 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -1664,23 +1664,7 @@ bool SLPVectorizer::vectorizeStoreChain(ArrayRef<Value *> Chain, } } - if (Changed || ChainLen > VF) return Changed; - - // Handle short chains. This helps us catch types such as <3 x float> that - // are smaller than vector size. - R.buildTree(Chain); - - int Cost = R.getTreeCost(); - - if (Cost < CostThreshold) { - DEBUG(dbgs() << "SLP: Found store chain cost = " << Cost - << " for size = " << ChainLen << "\n"); - R.vectorizeTree(); - return true; - } - - return false; } bool SLPVectorizer::vectorizeStores(ArrayRef<StoreInst *> Stores, |