Skip to content

SSA CFG: spill plan - #16965

Open
sbillig wants to merge 1 commit into
argotorg:developfrom
sbillig:ssa-spill-plan
Open

sbillig wants to merge 1 commit into
argotorg:developfrom
sbillig:ssa-spill-plan

Conversation

@sbillig

@sbillig sbillig commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

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

@sbillig
sbillig force-pushed the ssa-spill-plan branch 2 times, most recently from c322f5d to 041a30e Compare September 15, 2026 04:49
@sbillig
sbillig marked this pull request as ready for review September 16, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant