[llvm] ec24094 - [LTO] Remove Config.UseDefaultPipeline (#82587)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 22 10:05:10 PST 2024
Author: Igor Kudrin
Date: 2024-02-23T01:05:06+07:00
New Revision: ec24094b56793478909783c1156fd57ce5ec2006
URL: https://github.com/llvm/llvm-project/commit/ec24094b56793478909783c1156fd57ce5ec2006
DIFF: https://github.com/llvm/llvm-project/commit/ec24094b56793478909783c1156fd57ce5ec2006.diff
LOG: [LTO] Remove Config.UseDefaultPipeline (#82587)
This option is not used. It was added in
[D122133](https://reviews.llvm.org/D122133), 5856f30b, with the only
usage in `ClangLinkerWrapper.cpp`, which was later updated in a1d57fc2,
and then finally removed in [D142650](https://reviews.llvm.org/D142650),
6185246f.
Added:
Modified:
llvm/include/llvm/LTO/Config.h
llvm/lib/LTO/LTOBackend.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/LTO/Config.h b/llvm/include/llvm/LTO/Config.h
index 6fb55f1cf1686a..482b6e55a19d35 100644
--- a/llvm/include/llvm/LTO/Config.h
+++ b/llvm/include/llvm/LTO/Config.h
@@ -60,9 +60,6 @@ struct Config {
bool VerifyEach = false;
bool DisableVerify = false;
- /// Use the standard optimization pipeline.
- bool UseDefaultPipeline = false;
-
/// Flag to indicate that the optimizer should not assume builtins are present
/// on the target.
bool Freestanding = false;
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp
index 7b3a7590dfa743..6cfe67779b1a7d 100644
--- a/llvm/lib/LTO/LTOBackend.cpp
+++ b/llvm/lib/LTO/LTOBackend.cpp
@@ -330,8 +330,6 @@ static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM,
report_fatal_error(Twine("unable to parse pass pipeline description '") +
Conf.OptPipeline + "': " + toString(std::move(Err)));
}
- } else if (Conf.UseDefaultPipeline) {
- MPM.addPass(PB.buildPerModuleDefaultPipeline(OL));
} else if (IsThinLTO) {
MPM.addPass(PB.buildThinLTODefaultPipeline(OL, ImportSummary));
} else {
More information about the llvm-commits
mailing list