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) optJumpThreadCore omits target PHI args for threaded edges, causing RangeCheck to unsoundly eliminate bounds checks #135810
Jump threading in optJumpThreadCore redirects predecessor edges to a target block without adding corresponding GT_PHI_ARG entries to PHIs in the target block, causing RangeCheck to unsoundly eliminate array bounds checks.
When optJumpThreadPhi / optJumpThreadCore threads the cond1 predecessor block directly to Target while leaving the !cond1 predecessor entering m_block (if (v == 0)), it rewrites v's use in m_block to v_2 (which has the same VN as y_1) and does not add a GT_PHI_ARG for the newly redirected edge to y's GT_PHI in Target.
optAssertionPropMain then generates the edge assertion VN(y_1) == 0 on m_block -> Target, and RangeCheck::ComputeRange on y's PHI in Target only inspects the existing GT_PHI_ARGs, missing the unguarded threaded edge and eliminating the bounds check on arr[y].
Activity
dotnet-policy-service commentedon Oct 14, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
JIT: rebuild SSA and VN after RBO jump threading (#137972)