[llvm] [PassBuilder] Add a pass to LTO prelink step (PR #124052)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 19:05:44 PST 2025


https://github.com/gulfemsavrun created https://github.com/llvm/llvm-project/pull/124052

None

>From 15178c99f63acf1c2507f2d25f872b78693c2d1a Mon Sep 17 00:00:00 2001
From: Gulfem Savrun Yeniceri <gulfem at google.com>
Date: Tue, 21 Jan 2025 14:53:01 -0800
Subject: [PATCH] [PassBuilder] Add a pass to LTO prelink step

---
 llvm/lib/Passes/PassBuilderPipelines.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp
index 4ec0fb8fc81ea4..176cd7b09642cf 100644
--- a/llvm/lib/Passes/PassBuilderPipelines.cpp
+++ b/llvm/lib/Passes/PassBuilderPipelines.cpp
@@ -1597,8 +1597,7 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
   // TODO: Relative look table converter pass caused an issue when full lto is
   // enabled. See https://reviews.llvm.org/D94355 for more details.
   // Until the issue fixed, disable this pass during pre-linking phase.
-  if (!LTOPreLink)
-    MPM.addPass(RelLookupTableConverterPass());
+  MPM.addPass(RelLookupTableConverterPass());
 
   return MPM;
 }



More information about the llvm-commits mailing list