Skip to content

Commit bb26a10

Browse files
committed
[SLP][REVEC] Add an option to control SLP revectorization. NFC.
1 parent ac299ed commit bb26a10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ static cl::opt<bool>
113113
RunSLPVectorization("vectorize-slp", cl::init(true), cl::Hidden,
114114
cl::desc("Run the SLP vectorization passes"));
115115

116+
static cl::opt<bool>
117+
SLPReVec("slp-revec", cl::init(false), cl::Hidden,
118+
cl::desc("Enable vectorization for wider vector utilization"));
119+
116120
static cl::opt<int>
117121
SLPCostThreshold("slp-threshold", cl::init(0), cl::Hidden,
118122
cl::desc("Only vectorize if you gain more than this "

0 commit comments

Comments
 (0)