[llvm-commits] [llvm] r169774 - /llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp

Nadav Rotem nrotem at apple.com
Mon Dec 10 13:45:01 PST 2012


Author: nadav
Date: Mon Dec 10 15:45:01 2012
New Revision: 169774

URL: http://llvm.org/viewvc/llvm-project?rev=169774&view=rev
Log:
Enable the loop vectorizer only on O2 and above. (Still disabled by default)

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=169774&r1=169773&r2=169774&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Mon Dec 10 15:45:01 2012
@@ -188,7 +188,7 @@
   MPM.add(createLoopIdiomPass());             // Recognize idioms like memset.
   MPM.add(createLoopDeletionPass());          // Delete dead loops
 
-  if (LoopVectorize)
+  if (LoopVectorize && OptLevel > 1)
     MPM.add(createLoopVectorizePass());
 
   if (!DisableUnrollLoops)





More information about the llvm-commits mailing list