[llvm] [llvm] Don't preserve analysis results after EmbedBitcodePass (PR #146118)
Paul Kirth via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 27 10:13:35 PDT 2025
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/146118
Expensive checks complains when we mark them as preserved. The bitcode
being embedded generally doesn't change anything important in the
module, but some things are modified under ThinLTO, like vtables under
WPD. This became a non-issue when we cloned the module, but after we had
to revert that in #145987, we need to handle this case properly.
>From 1eeb1633e31c72f5f2d8e102d81411d8f5f3de98 Mon Sep 17 00:00:00 2001
From: Paul Kirth <paulkirth at google.com>
Date: Fri, 27 Jun 2025 10:06:51 -0700
Subject: [PATCH] [llvm] Don't preserve analysis results after EmbedBitcodePass
Expensive checks complains when we mark them as preserved. The bitcode
being embedded generally doesn't change anything important in the
module, but some things are modified under ThinLTO, like vtables under
WPD. This became a non-issue when we cloned the module, but after we had
to revert that in #145987, we need to handle this case properly.
---
llvm/lib/Transforms/IPO/EmbedBitcodePass.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Transforms/IPO/EmbedBitcodePass.cpp b/llvm/lib/Transforms/IPO/EmbedBitcodePass.cpp
index 73f567734a91b..f02256f8a83b9 100644
--- a/llvm/lib/Transforms/IPO/EmbedBitcodePass.cpp
+++ b/llvm/lib/Transforms/IPO/EmbedBitcodePass.cpp
@@ -41,5 +41,5 @@ PreservedAnalyses EmbedBitcodePass::run(Module &M, ModuleAnalysisManager &AM) {
embedBufferInModule(M, MemoryBufferRef(Data, "ModuleData"), ".llvm.lto");
- return PreservedAnalyses::all();
+ return PreservedAnalyses::none();
}
More information about the llvm-commits
mailing list