[lld] [llvm] [Coverage][WebAssembly] Keep InstrProf segments during gc (PR #172023)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 12 17:56:40 PST 2025
================
@@ -181,7 +192,7 @@ void markLive() {
if (!c->live)
message("removing unused section " + toString(c));
for (InputChunk *c : obj->segments)
- if (!c->live)
+ if (!c->live && !c->isInstrProfSegment)
----------------
sbc100 wrote:
Do you know why we don't need this extra check for segments covered by `enqueueRetainedSegments` ? Are misreporting retained segments are "removing unused section" here maybe?
https://github.com/llvm/llvm-project/pull/172023
More information about the llvm-commits
mailing list