Skip to content

Commit a5d59b7

Browse files
committed
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`.
1 parent 65fb1ad commit a5d59b7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clang/lib/CodeGen/BackendUtil.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,6 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
10271027
}
10281028

10291029
if (!NewPMPasses.empty()) {
1030-
MPM.addPass(PB.buildO0DefaultPipeline(Level, PrepareForThinLTO || PrepareForLTO));
10311030
if (auto Err = PB.parsePassPipeline(MPM, NewPMPasses)) {
10321031
report_fatal_error(Twine("unable to parse pass pipeline description '") +
10331032
NewPMPasses + "': " + toString(std::move(Err)));

0 commit comments

Comments
 (0)