summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-04-09 18:29:22 +0000
committerEric Christopher <echristo@gmail.com>2019-04-09 18:29:22 +0000
commit202c9b99e00b37b8658c9e32708a84406a40c818 (patch)
tree114cbfb3a2f2818758c03c5fe17edac3b62e188f /llvm
parent19f52bde5992ca55d817863f87474dfd97c176c3 (diff)
downloadbcm5719-llvm-202c9b99e00b37b8658c9e32708a84406a40c818.tar.gz
bcm5719-llvm-202c9b99e00b37b8658c9e32708a84406a40c818.zip
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
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h1
-rw-r--r--llvm/tools/opt/opt.cpp6
2 files changed, 0 insertions, 7 deletions
diff --git a/llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h b/llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h
index 70cb2476a9e..c5d79165dfa 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 b4c39e2fca8..1a886ea7965 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -173,11 +173,6 @@ 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"),
cl::init(false));
@@ -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;
OpenPOWER on IntegriCloud