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

Merge Compaction and Promotion #1914

Merged
merged 15 commits into from
Feb 16, 2024
Merged

Merge Compaction and Promotion #1914

merged 15 commits into from
Feb 16, 2024

Conversation

calebmkim
Copy link
Contributor

@calebmkim calebmkim commented Feb 12, 2024

This PR merges the compaction and promotion passes, which fixes #1909.

It also gets rid of the compaction pass.

You can pass -x static-promotion:compaction=false if you want to run just promotion, without compaction.

Also, compaction has a very simple heuristic: if you can compact the schedule at all, then compaction occurs. In the future, I can see more complex heuristics.

@rachitnigam
Copy link
Contributor

Awesome! One high-level suggestion from #1909 that I wanted to bubble up is defining a wrapper trait that manages the fixup stuff for passes that want to similar things to this pass. Might be worth doing in either this PR or another one if you think it makes sense.

@rachitnigam
Copy link
Contributor

Bumping this for merge since I'm getting ready for #1902!

@calebmkim calebmkim merged commit 60f119e into main Feb 16, 2024
7 checks passed
@calebmkim calebmkim deleted the merge-compact-promote branch February 16, 2024 21:14
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.

Another Compaction Bug (Sorry)
2 participants