[llvm-branch-commits] [llvm] llvm-reduce: Preserve uselistorder when writing thinlto bitcode (PR #133369)
Teresa Johnson via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Mar 31 08:30:34 PDT 2025
================
@@ -769,7 +769,11 @@ void ReducerWorkItem::readBitcode(MemoryBufferRef Data, LLVMContext &Ctx,
}
void ReducerWorkItem::writeBitcode(raw_ostream &OutStream) const {
+ const bool ShouldPreserveUseListOrder = true;
+
if (LTOInfo && LTOInfo->IsThinLTO && LTOInfo->EnableSplitLTOUnit) {
+ // FIXME: This should not depend on the pass manager. There are hidden
----------------
teresajohnson wrote:
It is necessary because the pass may mutate the module by splitting into regular and ThinLTO sub modules. See my comment on your other PR about how to provoke this splitting.
https://github.com/llvm/llvm-project/pull/133369
More information about the llvm-branch-commits
mailing list