summaryrefslogtreecommitdiff
path: root/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
commit08e20fbea18922e9f5f1cfb0ea7931c90006100e (patch)
tree5f80449b52a3f99fb72de56a06301da78f43e143 /lib/Transforms/Vectorize/SLPVectorizer.cpp
parentda91817d40dad85a15e0f2a7e11d4d302949586b (diff)
downloadllvm-08e20fbea18922e9f5f1cfb0ea7931c90006100e.tar.gz
llvm-08e20fbea18922e9f5f1cfb0ea7931c90006100e.tar.bz2
llvm-08e20fbea18922e9f5f1cfb0ea7931c90006100e.tar.xz
Update docs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r--lib/Transforms/Vectorize/SLPVectorizer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 03b9679e6c..d609302522 100644
--- a/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/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)