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

Use liveness info to speed up allocation #965

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eponier
Copy link
Contributor

@eponier eponier commented Nov 25, 2024

The tables used in allocation can be huge. We remove the dead variables from the tables, to reduce their sizes and speed up the pass. Inspired by CompCert that does something similar to reduce the cost of the value analysis.

Please review carefully the changes to Liveness, because I don't know what I did.

On this implementation of Keccak, the time taken by the analysis after inlining goes down from 20s to 1.5s. It still feels too much for 4 inlined functions (size 1700, 3800 variables). (More functions are inlined, but these are the ones where the time is spent).

The tables used in allocation can be huge. We remove the dead variables
from the tables, to reduce their sizes and speed up the pass.
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