You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JIT: (bug) loop hoisting moves a throwing expression above a store to an EH-live local #134938
LICM hoists a / b into the loop preheader, ahead of state = i + 1 in the loop body. state is live into the catch handler, so when the division throws, the handler sees the old value.
HoistVisitor::PostOrderVisit treats a local store as globally visible only when the local is address-exposed. That's wrong for EH-live locals (lvLiveInOutOfHndlr), because a handler can observe the store when a later instruction throws. m_canHoistSideEffects stays true, and the GTF_EXCEPT division is hoisted above the store.
Activity
dotnet-policy-service commentedon Sep 30, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
MihuBot commentedon Sep 30, 2026
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
jakobbotsch commentedon Sep 30, 2026
Duplicate of #134379 ?
JIT: Treat stores to EH-live locals as visible when hoisting (#135850)