Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tighter array eltype for
renumber_ssa
(JuliaLang#37499)
Unlike `renumber_ssa2` in `compiler/ir.jl` which actually takes an array with elements of many different types, all callers of `renumber_ssa` (and `renumber_ssa!`) only ever assign `SSAValue` to the array. Also no one ever checks `isassigned` on this array so a `Vector{SSAValue}` should work just fine here. Try to maintain a similar level of error checking by replacing `#undef` with `SSAValue(-1)` (already used by `construct_ssa!`) and adding an assertion in `renumber_ssa` to check for cases that throws `UndefVarError` previously. Also removed an unused parameter.
- Loading branch information