[llvm] r187628 - Move the optlevel check to the frontend.
Nadav Rotem
nrotem at apple.com
Thu Aug 1 15:41:58 PDT 2013
Author: nadav
Date: Thu Aug 1 17:41:58 2013
New Revision: 187628
URL: http://llvm.org/viewvc/llvm-project?rev=187628&view=rev
Log:
Move the optlevel check to the frontend.
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=187628&r1=187627&r2=187628&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Thu Aug 1 17:41:58 2013
@@ -217,7 +217,7 @@ void PassManagerBuilder::populateModuleP
addExtensionsToPM(EP_ScalarOptimizerLate, MPM);
if (!LateVectorize) {
- if (SLPVectorize && OptLevel > 2)
+ if (SLPVectorize)
MPM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains.
if (BBVectorize) {
More information about the llvm-commits
mailing list