[llvm] ThinLTO: Add flag to print uselistorder in bitcode writer pass (PR #133230)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 27 21:17:30 PDT 2025


================
@@ -487,9 +488,9 @@ void splitAndWriteThinLTOBitcode(
   // be used in the backends, and use that in the minimized bitcode
   // produced for the full link.
   ModuleHash ModHash = {{0}};
-  W.writeModule(M, /*ShouldPreserveUseListOrder=*/false, &Index,
+  W.writeModule(M, ShouldPreserveUseListOrder, &Index,
                 /*GenerateHash=*/true, &ModHash);
-  W.writeModule(*MergedM, /*ShouldPreserveUseListOrder=*/false, &MergedMIndex);
+  W.writeModule(*MergedM, ShouldPreserveUseListOrder, &MergedMIndex);
----------------
arsenm wrote:

Unfortunately constants also have use lists that need ordering, so the symbols don't matter 

https://github.com/llvm/llvm-project/pull/133230


More information about the llvm-commits mailing list