Skip to content

SSA CFG spill: fix miscounting in spill set#16829

Merged
clonker merged 1 commit into
developfrom
ssa-cfg-fix-spill-miscount-bug
Jun 24, 2026
Merged

SSA CFG spill: fix miscounting in spill set#16829
clonker merged 1 commit into
developfrom
ssa-cfg-fix-spill-miscount-bug

Conversation

@clonker

@clonker clonker commented Jun 24, 2026

Copy link
Copy Markdown
Member

The spill set would miscount the number of consumed slots for a user-defined call that can continue. The produced symbolic stack is only ever used to determine if something needs to be spilled additionally. Simulating to consume too few slots can only ever lead to a situation where we spill too much.

@clonker clonker requested a review from blishko June 24, 2026 15:10
…d slots for a user-defined call that can continue
@clonker clonker force-pushed the ssa-cfg-fix-spill-miscount-bug branch from 5fe0ff3 to f007b69 Compare June 24, 2026 15:12

@blishko blishko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This special-casing feels a bit weird. We should revisit the design for handling function calls at some point.

@clonker

clonker commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

This special-casing feels a bit weird. We should revisit the design for handling function calls at some point.

Fully agree, it did feel weird to me, too. Ideally there is a unified interface that does this stuff for us.

@clonker clonker enabled auto-merge June 24, 2026 15:28
@clonker clonker merged commit 6deed02 into develop Jun 24, 2026
83 checks passed
@clonker clonker deleted the ssa-cfg-fix-spill-miscount-bug branch June 24, 2026 15:46
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.

2 participants