[llvm] [PassBuilder] Add a pass to LTO postlink step (PR #124053)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 19:07:46 PST 2025
https://github.com/gulfemsavrun created https://github.com/llvm/llvm-project/pull/124053
None
>From de922a34913a8f4ed957f61ce9bf005718e045e9 Mon Sep 17 00:00:00 2001
From: Gulfem Savrun Yeniceri <gulfem at google.com>
Date: Wed, 22 Jan 2025 18:49:30 -0800
Subject: [PATCH] [PassBuilder] Add a pass to LTO postlink step
---
llvm/lib/Passes/PassBuilderPipelines.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp
index 4ec0fb8fc81ea4..ea50d25e9ecb52 100644
--- a/llvm/lib/Passes/PassBuilderPipelines.cpp
+++ b/llvm/lib/Passes/PassBuilderPipelines.cpp
@@ -1926,6 +1926,8 @@ PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level,
// Remove unused arguments from functions.
MPM.addPass(DeadArgumentEliminationPass());
+ MPM.addPass(RelLookupTableConverterPass());
+
// Reduce the code after globalopt and ipsccp. Both can open up significant
// simplification opportunities, and both can propagate functions through
// function pointers. When this happens, we often have to resolve varargs
More information about the llvm-commits
mailing list