================ @@ -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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits