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

[FIRRTL] Dedup: record less indices when hashing #7816

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

youngar
Copy link
Member

@youngar youngar commented Nov 14, 2024

We map operations to their index as they appear in the IR, so that we can use the index when hashing their uses as operands and inner-symbol references. We only need to bother assigning indices to operations which actually have results or an inner-symbol. Technically we can do a little better, the result or symbol has to actually have a user, but we we don't have many trivially dead expressions on our input.

We map operations to their index as they appear in the IR, so that we
can use the index when hashing their uses as operands and inner-symbol
references. We only need to bother assigning indices to operations which
actually have results or an inner-symbol.  Technically we can do a
little better, the result or symbol has to actually have a user, but we
we don't have many trivially dead expressions on our input.
@youngar youngar added the FIRRTL Involving the `firrtl` dialect label Nov 14, 2024
@youngar youngar merged commit 215f373 into llvm:main Nov 14, 2024
4 checks passed
@youngar youngar deleted the firrtl-dedup-record-less branch November 14, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FIRRTL Involving the `firrtl` dialect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant