Skip to content

Conversation

@cowardsa
Copy link
Contributor

The datapath-reduce-delay pass applies transformations that aim to reduce the delay of any matching path in the design. The initial PR includes the following transformations:

  1. Unsharing: Folding additions into datapath.compress operators even if the adder result is used by other operations - potentially increasing circuit area.
  2. Mux Duplication: (sel ? a+b : c+d) + e -> (sel ? a : c) + (sel ? b : d) + e

These optimisations are enabled when targeting timing driven optimisation using circt-synth. These transformations are inspired by the work of Zimmermann on datapath synthesis (see presentation: https://picture.iczhiku.com/resource/eetop/wyiEELySpYPudnxV.pdf)

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.

LGTM, thank you for adding documents and examples as well. Looks really clever.

@cowardsa cowardsa merged commit 80cfabc into llvm:main Oct 2, 2025
7 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