Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[firtool] Move LowerLayers later in pipeline. #7639

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

dtzSiFive
Copy link
Contributor

LowerLayers belongs with the other passes that lower out of FIRRTL.

Start moving it, now that first batch of passes have been fixed to handle enough FIRRTL IR to run in presence of layer operations.

LowerLayers belongs with the other passes that lower out of FIRRTL.

Start moving it, now that first batch of passes have been fixed
to handle enough FIRRTL IR to run in presence of layer operations.
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.

Nice.

I think this also fixes #7533 ?

@dtzSiFive
Copy link
Contributor Author

I think this also fixes #7533 ?

It does appear to fix the result of the example posted. If that resolves the issue sufficiently, then yes. Looks like canonicalization now runs before this as well 🎉 .

FWIW I wasn't sure if we wanted to move LayerSink later in the pipeline or not, but figured we can sort that out later (and pipeline placement re:LayerMerge which has other considerations).

Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

🥳

@dtzSiFive dtzSiFive linked an issue Sep 26, 2024 that may be closed by this pull request
@dtzSiFive dtzSiFive merged commit 253a70b into llvm:main Sep 26, 2024
4 checks passed
@dtzSiFive dtzSiFive deleted the feature/move-lower-layers-few-steps branch September 26, 2024 17:52
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.

[FIRRTL] design with layers not optimized as well as without
3 participants