Skip to content

Commit

Permalink
No need to run buildO0defaultPipeline manually.
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
ptersilie committed Nov 3, 2023
1 parent 65fb1ad commit a5d59b7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion clang/lib/CodeGen/BackendUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit a5d59b7

Please sign in to comment.