summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2014-02-02 03:12:34 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2014-02-02 03:12:34 +0000
commita16c1b55e2aac49c7336f3f54b50bbe85335712e (patch)
tree2cc6f130fcbdbcba7aa30ad45315a1e519c954a7 /lib
parent1bdadf38ef3273b40c2f7f253157a09a975f08a3 (diff)
downloadllvm-a16c1b55e2aac49c7336f3f54b50bbe85335712e.tar.gz
llvm-a16c1b55e2aac49c7336f3f54b50bbe85335712e.tar.bz2
llvm-a16c1b55e2aac49c7336f3f54b50bbe85335712e.tar.xz
LoopVectorizer: Enable unrolling of conditional stores and the load/store
unrolling heuristic per default Benchmarking on x86_64 (thanks Chandler!) and ARM has shown those options speed up some benchmarks while not causing any interesting regressions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 1f494922b3..930cf7799a 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -180,16 +180,16 @@ static cl::opt<bool> LoopVectorizeWithBlockFrequency(
// Runtime unroll loops for load/store throughput.
static cl::opt<bool> EnableLoadStoreRuntimeUnroll(
- "enable-loadstore-runtime-unroll", cl::init(false), cl::Hidden,
+ "enable-loadstore-runtime-unroll", cl::init(true), cl::Hidden,
cl::desc("Enable runtime unrolling until load/store ports are saturated"));
/// The number of stores in a loop that are allowed to need predication.
static cl::opt<unsigned> NumberOfStoresToPredicate(
- "vectorize-num-stores-pred", cl::init(0), cl::Hidden,
+ "vectorize-num-stores-pred", cl::init(1), cl::Hidden,
cl::desc("Max number of stores to be predicated behind an if."));
static cl::opt<bool> EnableIndVarRegisterHeur(
- "enable-ind-var-reg-heur", cl::init(false), cl::Hidden,
+ "enable-ind-var-reg-heur", cl::init(true), cl::Hidden,
cl::desc("Count the induction variable only once when unrolling"));
static cl::opt<bool> EnableCondStoresVectorization(