summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-07-26 22:53:11 +0000
committerNadav Rotem <nrotem@apple.com>2013-07-26 22:53:11 +0000
commita629c3a4f05a8e7976142577872aef95f88c86a0 (patch)
treec7ed4ca493d75e9987fdfdf2ada53af1a6a70fa0 /lib
parentc1bb2d432501dabdfcb1e78eccfb7377664c4d14 (diff)
downloadllvm-a629c3a4f05a8e7976142577872aef95f88c86a0.tar.gz
llvm-a629c3a4f05a8e7976142577872aef95f88c86a0.tar.bz2
llvm-a629c3a4f05a8e7976142577872aef95f88c86a0.tar.xz
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')
-rw-r--r--lib/Transforms/Vectorize/SLPVectorizer.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 25f7a78f66..c1accd32c5 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,