From: Yi Jiang Date: Tue, 24 Sep 2013 17:26:43 +0000 (+0000) Subject: set the cost of tiny trees to INT_MAX in SLP vectorizer to disable vectorization... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=085e23841e9c4f4682385fce456704a5f75f9cdc;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index b0c4894d358..b8e57de53be 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();