Skip to content

Conversation

rwy7
Copy link
Contributor

@rwy7 rwy7 commented Jul 10, 2025

changes:

  • remove firtool's --advanced-layer-sink option, advanced layer sink is now the default
  • disable layer sink if --disable-opt is true
  • remove the old layer-sink pass, and rename advanced-layer-sink to just layer-sink

@rwy7 rwy7 requested review from darthscsi and seldridge as code owners July 10, 2025 15:10
@rwy7 rwy7 changed the title Advanced layer sink default [FIRRTL][firtool] Enable advanced layer sink by default Jul 10, 2025
@rwy7 rwy7 added the FIRRTL Involving the `firrtl` dialect label Jul 10, 2025
Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

I think this PR accidentally dropped the advanced-layer-sink.mlir tests. I assume this should've been renamed/moved to layer-sink.mlir?

@rwy7 rwy7 force-pushed the advanced-layer-sink-default branch from c0b4b83 to ba68023 Compare July 10, 2025 19:44
@rwy7
Copy link
Contributor Author

rwy7 commented Jul 10, 2025

Whoops! Thanks, fixed

Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

LGTM

(Naive) layer sink is dead. Long live (advanced) layer sink.

rwy7 added 3 commits July 10, 2025 18:06
Advanced layer sink is now the only "layer sinking" pass that can run, it is no
longer possible to run the original layer sink pass. This commit also disables
layer sinking when optimizations are disabled.
@rwy7 rwy7 force-pushed the advanced-layer-sink-default branch from ba68023 to 9916a8b Compare July 10, 2025 22:21
@seldridge seldridge merged commit 323a112 into llvm:main Jul 11, 2025
7 checks passed
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.

2 participants