aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Vectorize
diff options
context:
space:
mode:
authorYi Jiang <yjiang@apple.com>2013-09-24 17:26:43 +0000
committerYi Jiang <yjiang@apple.com>2013-09-24 17:26:43 +0000
commit085e23841e9c4f4682385fce456704a5f75f9cdc (patch)
tree42aa13050f3a9c44ce4ba443566b45d1298e83d2 /lib/Transforms/Vectorize
parent989779ccc746eb7d7ab4774f25d7a3e1be14923e (diff)
downloadexternal_llvm-085e23841e9c4f4682385fce456704a5f75f9cdc.zip
external_llvm-085e23841e9c4f4682385fce456704a5f75f9cdc.tar.gz
external_llvm-085e23841e9c4f4682385fce456704a5f75f9cdc.tar.bz2
set the cost of tiny trees to INT_MAX in SLP vectorizer to disable vectorization on them
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize')
-rw-r--r--lib/Transforms/Vectorize/SLPVectorizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp
index b0c4894..b8e57de 100644
--- a/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -947,7 +947,7 @@ int BoUpSLP::getTreeCost() {
if (!VectorizableTree.size()) {
assert(!ExternalUses.size() && "We should not have any external users");
}
- return 0;
+ return INT_MAX;
}
unsigned BundleWidth = VectorizableTree[0].Scalars.size();