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

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 12 05:59:34 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:

As noted, the second invocation here is redundant.

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


More information about the llvm-commits mailing list