Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NFC] Optimize ParamUtils::getUsedParams() #6866

Merged
merged 10 commits into from
Aug 26, 2024
Merged

Conversation

kripken
Copy link
Member

@kripken kripken commented Aug 22, 2024

This constructed a LocalGraph, which computes the sets that reach each get. But
all we need to know is which params are live, so instead we can do a liveness
computation (which is just a boolean, not the list of sets). Also, it is simple to get
the liveness computation to only work on the parameters and not all the locals,
as a further optimization.

Existing tests cover this, though I did find that the case of unreachability needed
a new test.

On a large testcase I am looking at, this makes --dae 17% faster.

@kripken
Copy link
Member Author

kripken commented Aug 26, 2024

Fuzzed heavily over the weekend for any diff vs the previous behavior, no issues found.

@kripken kripken requested a review from tlively August 26, 2024 20:28
@kripken kripken merged commit 459bc07 into WebAssembly:main Aug 26, 2024
14 checks passed
@kripken kripken deleted the param.cfg branch August 26, 2024 23:00
@gkdn gkdn mentioned this pull request Aug 31, 2024
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