summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-06-29 05:37:19 +0000
committerNadav Rotem <nrotem@apple.com>2013-06-29 05:37:19 +0000
commite00343446c842e65160561ba6291723dede37b04 (patch)
treedd0158a5099df8cf3a90a31f6a80aba340882054 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
parent9822a1104c50013e0164d4a02837b96d72572ef2 (diff)
downloadbcm5719-llvm-e00343446c842e65160561ba6291723dede37b04.tar.gz
bcm5719-llvm-e00343446c842e65160561ba6291723dede37b04.zip
Update docs.
llvm-svn: 185250
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 03b9679e6cd..d609302522e 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -47,8 +47,8 @@ using namespace llvm;
static cl::opt<int>
SLPCostThreshold("slp-threshold", cl::init(0), cl::Hidden,
- cl::desc("Only vectorize trees if the gain is above this "
- "number. (gain = -cost of vectorization)"));
+ cl::desc("Only vectorize if you gain more than this "
+ "number "));
namespace {
static const unsigned MinVecRegSize = 128;
@@ -697,7 +697,6 @@ int FuncSLP::getTreeCost_rec(ArrayRef<Value *> VL, unsigned Depth) {
}
}
-
// Calculate the extract cost.
unsigned ExternalUserExtractCost = 0;
for (unsigned i = 0, e = VL.size(); i < e; ++i)
OpenPOWER on IntegriCloud