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
(#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
a0a68a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Executing the daily benchmark build, I will reply here when finished:
@nanosoldier
runbenchmarks(ALL, isdaily = true)
a0a68a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @ararslan