SSA CFG: spill plan - #16965
Open
sbillig wants to merge 1 commit into
Open
SSA CFG: spill plan#16965sbillig wants to merge 1 commit into
sbillig wants to merge 1 commit into
Conversation
sbillig
force-pushed
the
ssa-spill-plan
branch
2 times, most recently
from
September 15, 2026 04:49
c322f5d to
041a30e
Compare
sbillig
force-pushed
the
ssa-spill-plan
branch
from
September 16, 2026 22:24
041a30e to
8480ad3
Compare
sbillig
marked this pull request as ready for review
September 16, 2026 22:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Spill-store traces could reload a value from the same definition site before its memory slot had been initialized. For example, storing one result of a multi-return call could reload a later result before storing it, corrupting nonzero values.
Plan function-argument, block-entry phi, and operation-output stores in availability order and replay that recorded order. Newly discovered spills restart planning; each accepted store makes its owner available to subsequent traces. Emit all phi stores at block entry, independently of phi instruction order.
Checklist
AI Disclosure
gpt 6 xhigh did this