Skip to content

Conversation

@cowardsa
Copy link
Contributor

@cowardsa cowardsa commented Sep 3, 2025

Building on recent updates to incorporate longest path analysis for higher-level dialects (e.g. comb), this PR incorporates the arrival time information into the design of the compressor tree which improves the logic depth of a datpath.compress lowering to AIG. The CompressorTree class was moved into datapath.ops to avoid additional clutter in the comb ops files.

Future PRs will further build upon these algorithms to produce even more efficient compressors.

@cowardsa cowardsa requested a review from darthscsi as a code owner September 3, 2025 16:45
@cowardsa cowardsa requested review from uenoku and removed request for darthscsi September 3, 2025 16:45
Copy link
Member

@uenoku uenoku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really awesome! I'll take a closer look tomorrow but high-level:

  • Can we remove wallace reduction code path? My understanding is Dadda's algorithm is better even when the input arrival time is uniform, in that case it would be great if we can remove it.
  • Probably passing delay via function call back would be cleaner.

@cowardsa
Copy link
Contributor Author

cowardsa commented Sep 5, 2025

Now with changes recommended including removal of wallace reduction code and using a function call back for delay calculations

Copy link
Member

@uenoku uenoku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly style comments, LGTM!

@cowardsa cowardsa merged commit 65febbb into llvm:main Sep 11, 2025
9 checks passed
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