Skip to content

Commit de922a3

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

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
@@ -1926,6 +1926,8 @@ PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level,
19261926
// Remove unused arguments from functions.
19271927
MPM.addPass(DeadArgumentEliminationPass());
19281928

1929+
MPM.addPass(RelLookupTableConverterPass());
1930+
19291931
// Reduce the code after globalopt and ipsccp. Both can open up significant
19301932
// simplification opportunities, and both can propagate functions through
19311933
// function pointers. When this happens, we often have to resolve varargs

0 commit comments

Comments
 (0)