Skip to content

SSA: Remove unnecessary shuffling logic#16591

Merged
blishko merged 1 commit intodevelopfrom
ssa-remove-unnecessary-logic
Apr 13, 2026
Merged

SSA: Remove unnecessary shuffling logic#16591
blishko merged 1 commit intodevelopfrom
ssa-remove-unnecessary-logic

Conversation

@blishko
Copy link
Copy Markdown
Contributor

@blishko blishko commented Apr 11, 2026

After fixing tail, when we are trying to fix args, it is not possible anymore that the stack top would be required in tail but not present there yet.
Thus, we can assert this and delete logic that assumed this could occur.

After fixing tail, when we are trying to fix args, it is not possible
anymore that the stack top would be required in tail but not present
there yet.
Thus, we can assert this and delete logic that assumed this could occur.
Copy link
Copy Markdown
Member

@clonker clonker left a comment

Choose a reason for hiding this comment

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

I agree, by calling fixTailSlot first - which iterates the args range and on any slot that is required in tail but not there yet, returns StackModified or StackTooDeep, this is indeed dead code. Nice find!

@blishko blishko merged commit cc58705 into develop Apr 13, 2026
84 checks passed
@blishko blishko deleted the ssa-remove-unnecessary-logic branch April 13, 2026 09:43
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