Skip to content

Commit

Permalink
Update PassBuilderPipelines.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 authored Dec 4, 2023
1 parent f926941 commit 3552470
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions llvm/lib/Passes/PassBuilderPipelines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1499,10 +1499,7 @@ PassBuilder::buildPerModuleDefaultPipeline(OptimizationLevel Level,
return buildO0DefaultPipeline(Level, LTOPreLink);

ModulePassManager MPM;

// Convert @llvm.global.annotations to !annotation metadata.
MPM.addPassToFront(Annotation2MetadataPass());


// Force any function attributes we want the rest of the pipeline to observe.
MPM.addPass(ForceFunctionAttrsPass());

Expand Down Expand Up @@ -1551,10 +1548,7 @@ PassBuilder::buildThinLTOPreLinkDefaultPipeline(OptimizationLevel Level) {
return buildO0DefaultPipeline(Level, /*LTOPreLink*/true);

ModulePassManager MPM;

// Convert @llvm.global.annotations to !annotation metadata.
MPM.addPassToFront(Annotation2MetadataPass());


// Force any function attributes we want the rest of the pipeline to observe.
MPM.addPass(ForceFunctionAttrsPass());

Expand Down

0 comments on commit 3552470

Please sign in to comment.