From a5d59b7de9bda2b246de55c8ef56ac13f19bf096 Mon Sep 17 00:00:00 2001 From: Lukas Diekmann Date: Fri, 3 Nov 2023 13:58:28 +0000 Subject: [PATCH] No need to run `buildO0defaultPipeline` manually. The call to `PB.parsePassPipeline` will make sure the default pipeline is run. This is now equivalent to how custom pipelines are ran in `LTOBackend`. --- clang/lib/CodeGen/BackendUtil.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index c44ff5b34cdbdd..79d573f31f1126 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -1027,7 +1027,6 @@ void EmitAssemblyHelper::RunOptimizationPipeline( } if (!NewPMPasses.empty()) { - MPM.addPass(PB.buildO0DefaultPipeline(Level, PrepareForThinLTO || PrepareForLTO)); if (auto Err = PB.parsePassPipeline(MPM, NewPMPasses)) { report_fatal_error(Twine("unable to parse pass pipeline description '") + NewPMPasses + "': " + toString(std::move(Err)));