[llvm-commits] [llvm] r171471 - /llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
Nadav Rotem
nrotem at apple.com
Fri Jan 4 09:57:44 PST 2013
Author: nadav
Date: Fri Jan 4 11:57:44 2013
New Revision: 171471
URL: http://llvm.org/viewvc/llvm-project?rev=171471&view=rev
Log:
Move the loop vectorizer from O2 to O3. It looks like the increase in code size actually hurts the performance on many programs.
Modified:
llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
Modified: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp?rev=171471&r1=171470&r2=171471&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Fri Jan 4 11:57:44 2013
@@ -187,7 +187,7 @@
MPM.add(createLoopIdiomPass()); // Recognize idioms like memset.
MPM.add(createLoopDeletionPass()); // Delete dead loops
- if (LoopVectorize && OptLevel > 1)
+ if (LoopVectorize && OptLevel > 2)
MPM.add(createLoopVectorizePass());
if (!DisableUnrollLoops)
More information about the llvm-commits
mailing list