Skip to content

[wasm-reduce] Remove functions with delta debugging#8690

Open
tlively wants to merge 1 commit into
mainfrom
ddb-remove-functions
Open

[wasm-reduce] Remove functions with delta debugging#8690
tlively wants to merge 1 commit into
mainfrom
ddb-remove-functions

Conversation

@tlively
Copy link
Copy Markdown
Member

@tlively tlively commented May 11, 2026

Also take care not to remove functions that are referenced from module-level code, since in general those references cannot be replaced with anything else. When we remove functions, use ChildLocalizer to keep any children with side effects, since they might be important for reproducing the issue. Also try to replace calls to removed functions with constants if possible to avoid inserting unnecessary traps. Unlike the old implementation, this reduction scheme avoids wasted work by ensuring that the reduced module is still valid.

Also take care not to remove functions that are referenced from module-level code, since in general those references cannot be replaced with anything else. When we remove functions, use ChildLocalizer to keep any children with side effects, since they might be important for reproducing the issue. Also try to replace calls to removed functions with constants if possible to avoid inserting unnecessary traps. Unlike the old implementation, this reduction scheme avoids wasted work by ensuring that the reduced module is still valid.
@tlively tlively requested a review from kripken May 11, 2026 23:16
@tlively tlively requested a review from a team as a code owner May 11, 2026 23:16
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.

1 participant