Skip to content

Commit f569585

Browse files
committed
[PassBuilder] Add a pass to LTO postlink step
1 parent dd860bc commit f569585

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Passes/PassBuilderPipelines.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,6 +2121,8 @@ PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level,
21212121
if (PTO.MergeFunctions)
21222122
MPM.addPass(MergeFunctionsPass());
21232123

2124+
MPM.addPass(RelLookupTableConverterPass());
2125+
21242126
if (PTO.CallGraphProfile)
21252127
MPM.addPass(CGProfilePass(/*InLTOPostLink=*/true));
21262128

0 commit comments

Comments
 (0)