mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Rename the slp-vectorizer clang/llvm flags. No functionality change.
llvm-svn: 179505
This commit is contained in:
parent
7ab2574900
commit
4628b1562a
@ -103,7 +103,7 @@ public:
|
|||||||
bool DisableSimplifyLibCalls;
|
bool DisableSimplifyLibCalls;
|
||||||
bool DisableUnitAtATime;
|
bool DisableUnitAtATime;
|
||||||
bool DisableUnrollLoops;
|
bool DisableUnrollLoops;
|
||||||
bool Vectorize;
|
bool SLPVectorize;
|
||||||
bool LoopVectorize;
|
bool LoopVectorize;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -33,7 +33,7 @@ RunLoopVectorization("vectorize-loops",
|
|||||||
cl::desc("Run the Loop vectorization passes"));
|
cl::desc("Run the Loop vectorization passes"));
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
RunBBVectorization("vectorize", cl::desc("Run the BB vectorization passes"));
|
RunSLPVectorization("vectorize-slp", cl::desc("Run the SLP vectorization passes"));
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
UseGVNAfterVectorization("use-gvn-after-vectorization",
|
UseGVNAfterVectorization("use-gvn-after-vectorization",
|
||||||
@ -52,7 +52,7 @@ PassManagerBuilder::PassManagerBuilder() {
|
|||||||
DisableSimplifyLibCalls = false;
|
DisableSimplifyLibCalls = false;
|
||||||
DisableUnitAtATime = false;
|
DisableUnitAtATime = false;
|
||||||
DisableUnrollLoops = false;
|
DisableUnrollLoops = false;
|
||||||
Vectorize = RunBBVectorization;
|
SLPVectorize = RunSLPVectorization;
|
||||||
LoopVectorize = RunLoopVectorization;
|
LoopVectorize = RunLoopVectorization;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
|
|||||||
|
|
||||||
addExtensionsToPM(EP_ScalarOptimizerLate, MPM);
|
addExtensionsToPM(EP_ScalarOptimizerLate, MPM);
|
||||||
|
|
||||||
if (Vectorize) {
|
if (SLPVectorize) {
|
||||||
MPM.add(createBBVectorizePass());
|
MPM.add(createBBVectorizePass());
|
||||||
MPM.add(createInstructionCombiningPass());
|
MPM.add(createInstructionCombiningPass());
|
||||||
if (OptLevel > 1 && UseGVNAfterVectorization)
|
if (OptLevel > 1 && UseGVNAfterVectorization)
|
||||||
|
Loading…
Reference in New Issue
Block a user