]> granicus.if.org Git - llvm/commitdiff
Remove the unit at a time option
authorEric Christopher <echristo@gmail.com>
Tue, 9 Apr 2019 18:29:22 +0000 (18:29 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 9 Apr 2019 18:29:22 +0000 (18:29 +0000)
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

include/llvm/Transforms/IPO/PassManagerBuilder.h
tools/opt/opt.cpp

index 70cb2476a9ea410a10bf30e83790250a2251ebd5..c5d79165dfa2c502a48b920cd079c111d01549e3 100644 (file)
@@ -142,7 +142,6 @@ public:
   const ModuleSummaryIndex *ImportSummary = nullptr;
 
   bool DisableTailCalls;
-  bool DisableUnitAtATime;
   bool DisableUnrollLoops;
   bool SLPVectorize;
   bool LoopVectorize;
index b4c39e2fca8afa03fe6596debd89b5839b94d33f..1a886ea7965d7963ac332b68b561cbed40c2ded8 100644 (file)
@@ -172,11 +172,6 @@ CodeGenOptLevel("codegen-opt-level",
 static cl::opt<std::string>
 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>
 DisableLoopUnrolling("disable-loop-unrolling",
                      cl::desc("Disable loop unrolling in all relevant passes"),
@@ -383,7 +378,6 @@ static void AddOptimizationPasses(legacy::PassManagerBase &MPM,
   } else {
     Builder.Inliner = createAlwaysInlinerLegacyPass();
   }
-  Builder.DisableUnitAtATime = !UnitAtATime;
   Builder.DisableUnrollLoops = (DisableLoopUnrolling.getNumOccurrences() > 0) ?
                                DisableLoopUnrolling : OptLevel == 0;