[llvm] 23daa31 - [llvm] Don't preserve analysis results after EmbedBitcodePass (#146118)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 27 12:49:24 PDT 2025
Author: Paul Kirth
Date: 2025-06-27T12:49:20-07:00
New Revision: 23daa31341a68d404df04d9fedf7fdaaa80157f4
URL: https://github.com/llvm/llvm-project/commit/23daa31341a68d404df04d9fedf7fdaaa80157f4
DIFF: https://github.com/llvm/llvm-project/commit/23daa31341a68d404df04d9fedf7fdaaa80157f4.diff
LOG: [llvm] Don't preserve analysis results after EmbedBitcodePass (#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.
Added:
Modified:
llvm/lib/Transforms/IPO/EmbedBitcodePass.cpp
Removed:
################################################################################
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