Remove the unit at a time option
Removes the code from opt and the pass manager builder. The code was unused - even by the C library code that was supposed to set it and had been removed previously. llvm-svn: 358024
This commit is contained in:
parent
19f52bde59
commit
202c9b99e0
|
@ -142,7 +142,6 @@ public:
|
||||||
const ModuleSummaryIndex *ImportSummary = nullptr;
|
const ModuleSummaryIndex *ImportSummary = nullptr;
|
||||||
|
|
||||||
bool DisableTailCalls;
|
bool DisableTailCalls;
|
||||||
bool DisableUnitAtATime;
|
|
||||||
bool DisableUnrollLoops;
|
bool DisableUnrollLoops;
|
||||||
bool SLPVectorize;
|
bool SLPVectorize;
|
||||||
bool LoopVectorize;
|
bool LoopVectorize;
|
||||||
|
|
|
@ -172,11 +172,6 @@ CodeGenOptLevel("codegen-opt-level",
|
||||||
static cl::opt<std::string>
|
static cl::opt<std::string>
|
||||||
TargetTriple("mtriple", cl::desc("Override target triple for module"));
|
TargetTriple("mtriple", cl::desc("Override target triple for module"));
|
||||||
|
|
||||||
static cl::opt<bool>
|
|
||||||
UnitAtATime("funit-at-a-time",
|
|
||||||
cl::desc("Enable IPO. This corresponds to gcc's -funit-at-a-time"),
|
|
||||||
cl::init(true));
|
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
DisableLoopUnrolling("disable-loop-unrolling",
|
DisableLoopUnrolling("disable-loop-unrolling",
|
||||||
cl::desc("Disable loop unrolling in all relevant passes"),
|
cl::desc("Disable loop unrolling in all relevant passes"),
|
||||||
|
@ -383,7 +378,6 @@ static void AddOptimizationPasses(legacy::PassManagerBase &MPM,
|
||||||
} else {
|
} else {
|
||||||
Builder.Inliner = createAlwaysInlinerLegacyPass();
|
Builder.Inliner = createAlwaysInlinerLegacyPass();
|
||||||
}
|
}
|
||||||
Builder.DisableUnitAtATime = !UnitAtATime;
|
|
||||||
Builder.DisableUnrollLoops = (DisableLoopUnrolling.getNumOccurrences() > 0) ?
|
Builder.DisableUnrollLoops = (DisableLoopUnrolling.getNumOccurrences() > 0) ?
|
||||||
DisableLoopUnrolling : OptLevel == 0;
|
DisableLoopUnrolling : OptLevel == 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue