[PATCH] D60745: Remove RunSLPAfterLoopVectorization option...
Eric Christopher via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 15 18:59:12 PDT 2019
echristo created this revision.
echristo added reviewers: jmolloy, hfinkel.
Herald added subscribers: llvm-commits, hiraditya, mcrosier, mehdi_amini.
Herald added a project: LLVM.
It's been on by default for 4 years now, we're probably pretty good and it cleans up the pass hierarchy.
Sound good?
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D60745
Files:
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
Index: llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
===================================================================
--- llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
+++ llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
@@ -72,12 +72,6 @@
static cl::opt<bool> RunNewGVN("enable-newgvn", cl::init(false), cl::Hidden,
cl::desc("Run the NewGVN pass"));
-static cl::opt<bool>
-RunSLPAfterLoopVectorization("run-slp-after-loop-vectorization",
- cl::init(true), cl::Hidden,
- cl::desc("Run the SLP vectorizer (and BB vectorizer) after the Loop "
- "vectorizer instead of before"));
-
// Experimental option to use CFL-AA
enum class CFLAAType { None, Steensgaard, Andersen, Both };
static cl::opt<CFLAAType>
@@ -425,8 +419,6 @@
if (RerollLoops)
MPM.add(createLoopRerollPass());
- if (!RunSLPAfterLoopVectorization && SLPVectorize)
- MPM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains.
MPM.add(createAggressiveDCEPass()); // Delete dead instructions
MPM.add(createCFGSimplificationPass()); // Merge & remove BBs
@@ -715,7 +707,7 @@
// before SLP vectorization.
MPM.add(createCFGSimplificationPass(1, true, true, false, true));
- if (RunSLPAfterLoopVectorization && SLPVectorize) {
+ if (SLPVectorize) {
MPM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains.
if (OptLevel > 1 && ExtraVectorizerPasses) {
MPM.add(createEarlyCSEPass());
@@ -948,9 +940,8 @@
PM.add(createBitTrackingDCEPass());
// More scalar chains could be vectorized due to more alias information
- if (RunSLPAfterLoopVectorization)
- if (SLPVectorize)
- PM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains.
+ if (SLPVectorize)
+ PM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains.
// After vectorization, assume intrinsics may tell us more about pointer
// alignments.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60745.195288.patch
Type: text/x-patch
Size: 1945 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190416/ec1a4efd/attachment.bin>
More information about the llvm-commits
mailing list