Skip to content

[NFC] Clarify why RemoveUnusedModuleElements does not need descriptor-specific tracking#7880

Merged
kripken merged 2 commits intoWebAssembly:mainfrom
kripken:rume.desc
Sep 4, 2025
Merged

[NFC] Clarify why RemoveUnusedModuleElements does not need descriptor-specific tracking#7880
kripken merged 2 commits intoWebAssembly:mainfrom
kripken:rume.desc

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Sep 4, 2025

No description provided.

@kripken kripken requested a review from tlively September 4, 2025 16:43
Comment thread src/passes/RemoveUnusedModuleElements.cpp Outdated
Comment on lines +582 to +584
// avoid marking $d as reached. Put another way, a descriptor must be a
// struct; if it could be a function, then we'd need to optimize descriptors
// as we do normal fields.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe lead with this? I think this clarifies things more than saying descriptors have a struct "in the middle."

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, rewritten.

@kripken kripken merged commit 1db1e2c into WebAssembly:main Sep 4, 2025
16 checks passed
@kripken kripken deleted the rume.desc branch September 4, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants