lowering: keep always-defined flag on slots more often (#61720)
Easier parts extracted from https://github.com/JuliaLang/julia/pull/61387. Since a vinfo bit was reused many years ago, we currently erase always-defined status when deciding to unbox locals, so they're outlined in the IR where they don't need to be, as seen in some MTK-generated code. This change also puts non-captured, single-assign variables through `lambda-optimize-vars` so they get a chance to gain the always-defined flag.
E
Em Chu committed
2779d5ce6d2f5e35d24f970388d07bc0274c3d23
Parent: f310e68
Committed by GitHub <noreply@github.com>
on 5/5/2026, 6:25:37 PM