[lld] [lld][WebAssembly] Fix bitcode LTO order in archive parsing (PR #73095)

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 11:59:31 PST 2023


================
@@ -0,0 +1,42 @@
+target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128"
+target triple = "wasm32-unknown-unknown"
+
+; Generated from this C++ code:
+;
+; int foo();
+; inline int unused = foo();
+;
+; int main() {
+;   return foo();
+; }
----------------
sbc100 wrote:

I wonder if its possible to reduce these test files something smaller by hand writing them instead?

I'd always prefer something more concise in the test files in possible.

Also, I wonder if we even need to mention `global_var_init` .. presumably this problem applies to all comat groups?  Should we call these something `comdat_ordering.ll`?

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


More information about the llvm-commits mailing list