Closed
Description
The annotate_slot_load!
function here:
julia/base/compiler/typeinfer.jl
Lines 633 to 671 in 76c906e
Shows up prominently in profiles, but the work it does is mostly redundant with SSA construction and it is algorithmically much slower.
Currently, the only thing we're using the TypedSlot annotation that this function inserts for is PiNodes. These days, this information is stored in the bb_vartables:
julia/base/compiler/inferencestate.jl
Line 217 in 76c906e
Rather than doing the TypedSlot insertion, we could pass down the bb_vartables through OptimizerState into the ssa construction code and use it for PiNode insertion directly.