From 202c9b99e00b37b8658c9e32708a84406a40c818 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. llvm-svn: 358024 --- llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h | 1 - llvm/tools/opt/opt.cpp | 6 ------ 2 files changed, 7 deletions(-) diff --git a/llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h b/llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h index 70cb2476a9ea..c5d79165dfa2 100644 --- a/llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h +++ b/llvm/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/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index b4c39e2fca8a..1a886ea7965d 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/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;