@@ -72,12 +72,6 @@ RunLoopRerolling("reroll-loops", cl::Hidden,
72
72
static cl::opt<bool > RunNewGVN (" enable-newgvn" , cl::init(false ), cl::Hidden,
73
73
cl::desc(" Run the NewGVN pass" ));
74
74
75
- static cl::opt<bool >
76
- RunSLPAfterLoopVectorization (" run-slp-after-loop-vectorization" ,
77
- cl::init (true ), cl::Hidden,
78
- cl::desc(" Run the SLP vectorizer (and BB vectorizer) after the Loop "
79
- " vectorizer instead of before" ));
80
-
81
75
// Experimental option to use CFL-AA
82
76
enum class CFLAAType { None, Steensgaard, Andersen, Both };
83
77
static cl::opt<CFLAAType>
@@ -425,8 +419,6 @@ void PassManagerBuilder::addFunctionSimplificationPasses(
425
419
426
420
if (RerollLoops)
427
421
MPM.add (createLoopRerollPass ());
428
- if (!RunSLPAfterLoopVectorization && SLPVectorize)
429
- MPM.add (createSLPVectorizerPass ()); // Vectorize parallel scalar chains.
430
422
431
423
MPM.add (createAggressiveDCEPass ()); // Delete dead instructions
432
424
MPM.add (createCFGSimplificationPass ()); // Merge & remove BBs
@@ -715,7 +707,7 @@ void PassManagerBuilder::populateModulePassManager(
715
707
// before SLP vectorization.
716
708
MPM.add (createCFGSimplificationPass (1 , true , true , false , true ));
717
709
718
- if (RunSLPAfterLoopVectorization && SLPVectorize) {
710
+ if (SLPVectorize) {
719
711
MPM.add (createSLPVectorizerPass ()); // Vectorize parallel scalar chains.
720
712
if (OptLevel > 1 && ExtraVectorizerPasses) {
721
713
MPM.add (createEarlyCSEPass ());
@@ -948,9 +940,8 @@ void PassManagerBuilder::addLTOOptimizationPasses(legacy::PassManagerBase &PM) {
948
940
PM.add (createBitTrackingDCEPass ());
949
941
950
942
// More scalar chains could be vectorized due to more alias information
951
- if (RunSLPAfterLoopVectorization)
952
- if (SLPVectorize)
953
- PM.add (createSLPVectorizerPass ()); // Vectorize parallel scalar chains.
943
+ if (SLPVectorize)
944
+ PM.add (createSLPVectorizerPass ()); // Vectorize parallel scalar chains.
954
945
955
946
// After vectorization, assume intrinsics may tell us more about pointer
956
947
// alignments.
0 commit comments