[llvm] [llvm] Don't preserve analysis results after EmbedBitcodePass (PR #146118)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 27 10:14:17 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Paul Kirth (ilovepi)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/146118.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/IPO/EmbedBitcodePass.cpp (+1-1)
``````````diff
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();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/146118
More information about the llvm-commits
mailing list