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

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 31 08:29:13 PDT 2025


================
@@ -0,0 +1,25 @@
+; Check that thin lto bitcode respects preserve-bc-uselistorder
+
+; Test without -thin-link-bitcode-file
+; RUN: opt --preserve-bc-uselistorder --thinlto-bc --thinlto-split-lto-unit < %s | llvm-dis --preserve-ll-uselistorder | FileCheck %s
+
+; Test with -thin-link-bitcode-file
+; RUN: opt --preserve-bc-uselistorder --thinlto-bc --thinlto-split-lto-unit -thin-link-bitcode-file=%t.thinlink.bc < %s | llvm-dis --preserve-ll-uselistorder | FileCheck %s
----------------
teresajohnson wrote:

You don't need to test with -thin-link-bitcode-file, which is a file just containing the ThinLTO summary.

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


More information about the llvm-commits mailing list