Skip to content

Commit 1eeb163

Browse files
committed
[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.
1 parent d00c83e commit 1eeb163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/EmbedBitcodePass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ PreservedAnalyses EmbedBitcodePass::run(Module &M, ModuleAnalysisManager &AM) {
4141

4242
embedBufferInModule(M, MemoryBufferRef(Data, "ModuleData"), ".llvm.lto");
4343

44-
return PreservedAnalyses::all();
44+
return PreservedAnalyses::none();
4545
}

0 commit comments

Comments
 (0)