Skip to content

Conversation

@uenoku
Copy link
Member

@uenoku uenoku commented Nov 4, 2025

This commit fixes FoldAddIntoCompress canonicalization pattern that would introduce datapath.compress operations when canonicalizing pure comb.add operations that have no datapath operands. This was exposed by #9177 which I added CSE between DatapathToComb and canonicalization, datapath operations are introduced by canonicalization after DatapathToComb.

The fix is not still ideal since the canonicalization is registered for comb.add. It should be implementeded as a caonicalization for datapath.compress or standalone pass.

…from pure comb ops

This commit fixes FoldAddIntoCompress canonicalization
pattern that would introduce datapath.compress operations when
canonicalizing pure comb.add operations that have no datapath operands.

The fix is not still ideal since the canonicalization is registered for comb.add.
It should be implementeded as a caonicalization for datapath.compress or standalone pass.
@uenoku uenoku requested a review from cowardsa November 4, 2025 02:24
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