Skip to content

Remove slot and assignment handling from codegen - #352

Merged
maleadt merged 1 commit into
mainfrom
tb/remove-slot-codegen
Nov 24, 2026
Merged

maleadt merged 1 commit into
mainfrom
tb/remove-slot-codegen

Conversation

@maleadt

@maleadt maleadt commented Nov 24, 2026

Copy link
Copy Markdown
Member

Codegen and the analysis passes run on IRCode, which never contains SlotNumbers or :(=) statements (Julia's IR verifier rejects both). The code handling them is left over from the CodeInfo-based codegen.

This removes CGCtx.slots and its accessors, the slot and assignment emitters, the unused extract_argument_index, and the SlotNumber cases in the dataflow, alias and throw analyses. None of these paths is reached by the test suite.

Codegen and the analysis passes run on StructuredIRCode built from IRCode,
which never contains slots or `:(=)` statements (the IRCode verifier rejects
both). The slot map in CGCtx, the slot lookups, the assignment emitter and
the SlotNumber cases in the dataflow, alias and throw analyses are leftovers
from the CodeInfo-based codegen, and were never hit by the test suite.
@maleadt
maleadt added this pull request to stack #357 November 24, 2026 09:58
@maleadt

maleadt commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

CI failure is a flake; depending on the test order the compiler hangs. I'm root causing it, so I think we can in the mean time go ahead and merge this.

@maleadt
maleadt merged commit d0db498 into main Nov 24, 2026
3 of 5 checks passed
@maleadt
maleadt deleted the tb/remove-slot-codegen branch November 24, 2026 13:05
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.

1 participant