summaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/EmbedBitcode/embed-wpd.ll
AgeCommit message (Collapse)Author
2025-06-26Revert "[llvm][EmbedBitcodePass] Prevent modifying the module with ThinLTO" ↵Paul Kirth
(#145987) Reverts llvm/llvm-project#139999 This has a reported crash in https://github.com/llvm/llvm-project/pull/139999#issuecomment-2993622494 This PR was intended to fix an error when linking, which is unfortunately preferable to crashing clang. For now, we'll revert and investigate the problem.
2025-05-29[llvm][EmbedBitcodePass] Prevent modifying the module with ThinLTO (#139999)Paul Kirth
Since ThinLTOBitcodeWriterPass handles many things for CFI and WPD, like updating vtable linkage, we need to prevent those changes from persisting in the non-LTO object code we will compile under FatLTO. The only non-invasive way to do that is to clone the module when serializing the module in ThinLTOBitcodeWriterPass. We may be able to avoid cloning in the future with additional infrastructure to restore the IR to its original state. Fixes #139440
2025-05-29[llvm][EmbedBitcodePass] Pre-commit test for using WPD with FatLTO (#139998)Paul Kirth
This is a reduced test case from #139440.