llvm.org GIT mirror llvm / 3fea56d
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358024 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 4 months ago
2 changed file(s) with 0 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
141141 const ModuleSummaryIndex *ImportSummary = nullptr;
142142
143143 bool DisableTailCalls;
144 bool DisableUnitAtATime;
145144 bool DisableUnrollLoops;
146145 bool SLPVectorize;
147146 bool LoopVectorize;
172172 TargetTriple("mtriple", cl::desc("Override target triple for module"));
173173
174174 static cl::opt
175 UnitAtATime("funit-at-a-time",
176 cl::desc("Enable IPO. This corresponds to gcc's -funit-at-a-time"),
177 cl::init(true));
178
179 static cl::opt
180175 DisableLoopUnrolling("disable-loop-unrolling",
181176 cl::desc("Disable loop unrolling in all relevant passes"),
182177 cl::init(false));
382377 } else {
383378 Builder.Inliner = createAlwaysInlinerLegacyPass();
384379 }
385 Builder.DisableUnitAtATime = !UnitAtATime;
386380 Builder.DisableUnrollLoops = (DisableLoopUnrolling.getNumOccurrences() > 0) ?
387381 DisableLoopUnrolling : OptLevel == 0;
388382