aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Turner <charlie.turner@arm.com>2015-11-11 15:03:46 +0000
committerCharlie Turner <charlie.turner@arm.com>2015-11-11 15:03:46 +0000
commitd82c9389e731562cd844c91a2f52db98c470108b (patch)
treee4ed8c7062e345ff70ec8086ffbe6a97c0252e5e
parent470b5f1a7906e3250ee0605aa202051f1dddac5d (diff)
downloadllvm-d82c9389e731562cd844c91a2f52db98c470108b.zip
llvm-d82c9389e731562cd844c91a2f52db98c470108b.tar.gz
llvm-d82c9389e731562cd844c91a2f52db98c470108b.tar.bz2
[SLP] Enable -slp-vectorize-hor by default.
Measurements primarily on AArch64 have shown this feature does not significantly effect compile-time. The are no significant perf changes in LNT, but for AArch64 at least, there are wins in third party benchmarks. As discussed on llvm-dev, we're going to try turning this on by default and see how other targets react to the change. llvm-svn: 252733
-rw-r--r--llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index ab81430..ad28a72 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -61,7 +61,7 @@ static cl::opt<int>
"number "));
static cl::opt<bool>
-ShouldVectorizeHor("slp-vectorize-hor", cl::init(false), cl::Hidden,
+ShouldVectorizeHor("slp-vectorize-hor", cl::init(true), cl::Hidden,
cl::desc("Attempt to vectorize horizontal reductions"));
static cl::opt<bool> ShouldStartVectorizeHorAtStore(