diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-06-17 16:23:34 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-06-17 16:23:34 +0000 |
commit | f9f86812865b941e0dd2855318d138e8935792cc (patch) | |
tree | b797afa065be21a55668861169031db7163ff289 /lib/Transforms/IPO/PassManagerBuilder.cpp | |
parent | 8496faea07de27b6d3435d02855db4bfebcc2781 (diff) | |
download | external_llvm-f9f86812865b941e0dd2855318d138e8935792cc.zip external_llvm-f9f86812865b941e0dd2855318d138e8935792cc.tar.gz external_llvm-f9f86812865b941e0dd2855318d138e8935792cc.tar.bz2 |
Enable the loop vectorizer by default for -Os and -O2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/PassManagerBuilder.cpp')
-rw-r--r-- | lib/Transforms/IPO/PassManagerBuilder.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Transforms/IPO/PassManagerBuilder.cpp b/lib/Transforms/IPO/PassManagerBuilder.cpp index 8ed7704..0ad45ec 100644 --- a/lib/Transforms/IPO/PassManagerBuilder.cpp +++ b/lib/Transforms/IPO/PassManagerBuilder.cpp @@ -32,12 +32,6 @@ static cl::opt<bool> RunLoopVectorization("vectorize-loops", cl::desc("Run the Loop vectorization passes")); -// This is a helper flag that we use for testing the profitability of -// vectorization on -O2 and -Os. It should go away once we make a decision. -static cl::opt<bool> -VectorizeO2("vectorize-o2", - cl::desc("Enable vectorization on all O levels")); - static cl::opt<bool> RunSLPVectorization("vectorize-slp", cl::desc("Run the SLP vectorization passes")); @@ -198,7 +192,7 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) { MPM.add(createLoopIdiomPass()); // Recognize idioms like memset. MPM.add(createLoopDeletionPass()); // Delete dead loops - if (LoopVectorize && (OptLevel > 2 || VectorizeO2)) + if (LoopVectorize && (OptLevel > 1)) MPM.add(createLoopVectorizePass()); if (!DisableUnrollLoops) |