https://bugs.llvm.org/show_bug.cgi?id=50531

            Bug ID: 50531
           Summary: wasm: Implement comdat noduplicates
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Regular `comdat any` performs deduplication with the symbol name as the key.

`comdat noduplicates` is useful to express that a group of sections should be
retained or discarded as a unit. This is currently unimplemented for wasm.

This feature is useful for certain metadata sections. In the simplest
non-value-profiling PGO/coverage case. A function needs two metadata sections:
__llvm_prf_cnts, __llvm_prf_data. The code references __llvm_prf_cnts but
__llvm_prf_data is unreferenced. We can place the pair of cnts/data in a
`comdat noduplicates` to let the liveness of cnts retain data.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to