Skip to content

Conversation

@maerhart
Copy link
Member

@maerhart maerhart commented Nov 3, 2025

The two sets in the added test were not considered equivalent. The order of the set that was internalized first is used for all equivalent sets now.

@maerhart maerhart added the RTG Involving the `rtg` dialect label Nov 3, 2025
@uenoku
Copy link
Member

uenoku commented Nov 3, 2025

LGTM. Note that XOR commutative hashing would cause a lot of collision so we might want to revisit later if this hashing is called frequently. FYI Yosys improved the hashing recently YosysHQ/yosys#5302.

@maerhart
Copy link
Member Author

maerhart commented Nov 3, 2025

Thanks for the pointer! I expect that we'll have to do that or something similar as well, probably not too far in the future.

@maerhart maerhart merged commit baefacd into main Nov 3, 2025
7 checks passed
@maerhart maerhart deleted the maerhart-rtg-elaboration-set-equivalence-fix branch November 3, 2025 18:11
TaoBi22 pushed a commit to TaoBi22/circt that referenced this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RTG Involving the `rtg` dialect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants