[llvm-bugs] [Bug 50531] New: wasm: Implement comdat noduplicates
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat May 29 22:21:39 PDT 2021
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: unassignedbugs at nondot.org
Reporter: i at maskray.me
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210530/a13e8104/attachment.html>
More information about the llvm-bugs
mailing list