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

lower: fix Graphviz output and settings #1079

Merged
merged 4 commits into from
Sep 28, 2024
Merged

lower: fix Graphviz output and settings #1079

merged 4 commits into from
Sep 28, 2024

Conversation

feds01
Copy link
Contributor

@feds01 feds01 commented Sep 28, 2024

Description

This PR fixes a few issues with the lowering settings being propagated and with the graphviz
output format which unexpectedly changed the block ids.

Finally, the SimplifyGraphPass is now run before and after the CleanupLocalPass to ensure that now-empty blocks are also removed
after the lowering.

Commits

  • pipeline: run post-init hooks after settings initialisation
  • pipeline: LoweringSettings merge should inherit rhs values
  • lower: fix graphviz block ids
  • lower: run SimplifyGraphPass pre & post CleanupLocalPass

This commit adds the `SimplifyGraphPass` to the optimise passes
configuration to run before and after the `CleanupLocalPass`. This
increases the optimisation of the graph by simplifying the graph
before and after the local cleanup.
@feds01 feds01 self-assigned this Sep 28, 2024
@feds01 feds01 merged commit aba6c98 into main Sep 28, 2024
1 check 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