Skip to content

Commit 3552470

Browse files
authored
Update PassBuilderPipelines.cpp
1 parent f926941 commit 3552470

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

llvm/lib/Passes/PassBuilderPipelines.cpp

+2-8
Original file line numberDiff line numberDiff line change
@@ -1499,10 +1499,7 @@ PassBuilder::buildPerModuleDefaultPipeline(OptimizationLevel Level,
14991499
return buildO0DefaultPipeline(Level, LTOPreLink);
15001500

15011501
ModulePassManager MPM;
1502-
1503-
// Convert @llvm.global.annotations to !annotation metadata.
1504-
MPM.addPassToFront(Annotation2MetadataPass());
1505-
1502+
15061503
// Force any function attributes we want the rest of the pipeline to observe.
15071504
MPM.addPass(ForceFunctionAttrsPass());
15081505

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

15531550
ModulePassManager MPM;
1554-
1555-
// Convert @llvm.global.annotations to !annotation metadata.
1556-
MPM.addPassToFront(Annotation2MetadataPass());
1557-
1551+
15581552
// Force any function attributes we want the rest of the pipeline to observe.
15591553
MPM.addPass(ForceFunctionAttrsPass());
15601554

0 commit comments

Comments
 (0)