From 3fea56d5de7ad30de97dcd3e92baef79ce7e68df Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 9 Apr 2019 18:29:22 +0000 Subject: [PATCH] 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 --- include/llvm/Transforms/IPO/PassManagerBuilder.h | 1 - tools/opt/opt.cpp | 6 ------ 2 files changed, 7 deletions(-) diff --git a/include/llvm/Transforms/IPO/PassManagerBuilder.h b/include/llvm/Transforms/IPO/PassManagerBuilder.h index 70cb2476a9e..c5d79165dfa 100644 --- a/include/llvm/Transforms/IPO/PassManagerBuilder.h +++ b/include/llvm/Transforms/IPO/PassManagerBuilder.h @@ -142,7 +142,6 @@ public: const ModuleSummaryIndex *ImportSummary = nullptr; bool DisableTailCalls; - bool DisableUnitAtATime; bool DisableUnrollLoops; bool SLPVectorize; bool LoopVectorize; diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index b4c39e2fca8..1a886ea7965 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -172,11 +172,6 @@ CodeGenOptLevel("codegen-opt-level", static cl::opt TargetTriple("mtriple", cl::desc("Override target triple for module")); -static cl::opt -UnitAtATime("funit-at-a-time", - cl::desc("Enable IPO. This corresponds to gcc's -funit-at-a-time"), - cl::init(true)); - static cl::opt 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; -- 2.50.1