Skip to content

Cranelift: make critical-edge blocks inherit coldness from predecessors - #15329

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
fitzgen:critical-edge-cold-pred
Nov 17, 2026
Merged

alexcrichton merged 1 commit into
bytecodealliance:mainfrom
fitzgen:critical-edge-cold-pred

Conversation

@fitzgen

@fitzgen fitzgen commented Nov 17, 2026

Copy link
Copy Markdown
Member

They already inherited coldness from their successor, but this commit makes them also inherit it from their predecessor. If either is cold, then that implies that the critical-edge block is also cold.

This improves code quality by better falling though hot paths and better register allocation after bytecodealliance/regalloc2#279 lands.

They already inherited coldness from their successor, but this commit makes them
also inherit it from their predecessor. If either is cold, then that implies
that the critical-edge block is also cold.

This improves code quality by better falling though hot paths and better
register allocation after bytecodealliance/regalloc2#279
lands.
@fitzgen
fitzgen requested a review from a team as a code owner November 17, 2026 17:07
@fitzgen
fitzgen requested review from alexcrichton and removed request for a team November 17, 2026 17:07
@alexcrichton
alexcrichton added this pull request to the merge queue Nov 17, 2026
Merged via the queue into bytecodealliance:main with commit 1b26983 Nov 17, 2026
52 checks passed
@fitzgen
fitzgen deleted the critical-edge-cold-pred branch November 17, 2026 18:03
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