From a629c3a4f05a8e7976142577872aef95f88c86a0 Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Fri, 26 Jul 2013 22:53:11 +0000 Subject: 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 --- lib/Transforms/Vectorize/SLPVectorizer.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'lib/Transforms') 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 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 Stores, -- cgit v1.1