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

Memoize the hashcode of the ChiselCircuitAnnotation #1485

Merged
merged 1 commit into from
Jun 19, 2020

Conversation

jackkoenig
Copy link
Contributor

@jackkoenig jackkoenig commented Jun 19, 2020

We hash all of the annotations between phases so this makes that much faster after Chisel elaboration. @seldridge discussed changing the hashcode to be either a constant or just hash the name of the top-module or something so that we don't even both hashing the circuit, but I'll leave that for a later change. I would really like this in 3.3.2 because it's costing a lot of runtime.

Related issue:

Type of change: other enhancement

Impact: no functional change

Development Phase: implementation

Release Notes

Memoize hashcode of ChiselCircuitAnnotation, improves performance of multi-phase generators

@jackkoenig jackkoenig requested a review from a team as a code owner June 19, 2020 23:17
@jackkoenig jackkoenig added this to the 3.2.x milestone Jun 19, 2020
@jackkoenig jackkoenig added the Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI. label Jun 19, 2020
@mergify mergify bot merged commit 9bda7a7 into master Jun 19, 2020
mergify bot pushed a commit that referenced this pull request Jun 19, 2020
mergify bot pushed a commit that referenced this pull request Jun 19, 2020
@mergify mergify bot added the Backported This PR has been backported label Jun 19, 2020
mergify bot added a commit that referenced this pull request Jun 20, 2020
(cherry picked from commit 9bda7a7)

Co-authored-by: Jack Koenig <koenig@sifive.com>
mergify bot added a commit that referenced this pull request Jun 22, 2020
(cherry picked from commit 9bda7a7)

Co-authored-by: Jack Koenig <koenig@sifive.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
@jackkoenig jackkoenig deleted the memoize-circuit-anno-hashcode branch June 25, 2020 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backported This PR has been backported Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants