Skip to content

Commit ec24094

Browse files
authored
[LTO] Remove Config.UseDefaultPipeline (#82587)
This option is not used. It was added in [D122133](https://reviews.llvm.org/D122133), 5856f30, with the only usage in `ClangLinkerWrapper.cpp`, which was later updated in a1d57fc, and then finally removed in [D142650](https://reviews.llvm.org/D142650), 6185246.
1 parent ea174c0 commit ec24094

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

llvm/include/llvm/LTO/Config.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ struct Config {
6060
bool VerifyEach = false;
6161
bool DisableVerify = false;
6262

63-
/// Use the standard optimization pipeline.
64-
bool UseDefaultPipeline = false;
65-
6663
/// Flag to indicate that the optimizer should not assume builtins are present
6764
/// on the target.
6865
bool Freestanding = false;

llvm/lib/LTO/LTOBackend.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,6 @@ static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM,
330330
report_fatal_error(Twine("unable to parse pass pipeline description '") +
331331
Conf.OptPipeline + "': " + toString(std::move(Err)));
332332
}
333-
} else if (Conf.UseDefaultPipeline) {
334-
MPM.addPass(PB.buildPerModuleDefaultPipeline(OL));
335333
} else if (IsThinLTO) {
336334
MPM.addPass(PB.buildThinLTODefaultPipeline(OL, ImportSummary));
337335
} else {

0 commit comments

Comments
 (0)