[llvm-commits] [llvm] r170157 - in /llvm/trunk/lib/Transforms: IPO/PassManagerBuilder.cpp Vectorize/LoopVectorize.cpp
Nadav Rotem
nrotem at apple.com
Thu Dec 13 15:11:54 PST 2012
Author: nadav
Date: Thu Dec 13 17:11:54 2012
New Revision: 170157
URL: http://llvm.org/viewvc/llvm-project?rev=170157&view=rev
Log:
Enable the Loop Vectorizer by default for O2 and O3. Disable if-conversion by default. I plan to revert this patch later today.
Modified:
llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Modified: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp?rev=170157&r1=170156&r2=170157&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Thu Dec 13 17:11:54 2012
@@ -188,7 +188,7 @@
MPM.add(createLoopIdiomPass()); // Recognize idioms like memset.
MPM.add(createLoopDeletionPass()); // Delete dead loops
- if (LoopVectorize && OptLevel > 1)
+ if (true && OptLevel > 1)
MPM.add(createLoopVectorizePass());
if (!DisableUnrollLoops)
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=170157&r1=170156&r2=170157&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Thu Dec 13 17:11:54 2012
@@ -44,7 +44,7 @@
cl::desc("Sets the SIMD width. Zero is autoselect."));
static cl::opt<bool>
-EnableIfConversion("enable-if-conversion", cl::init(true), cl::Hidden,
+EnableIfConversion("enable-if-conversion", cl::init(false), cl::Hidden,
cl::desc("Enable if-conversion during vectorization."));
namespace {
More information about the llvm-commits
mailing list