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) Assertion failed '!node->IsUserCall()' during 'Rationalize IR' with an identity Vector128.Shuffle #133787
When Rationalizer::RewriteHWIntrinsicAsUserCall replaces a deferred intrinsic with a replacement node, the pre-order visit is not re-run on that replacement. A deferred (GTF_HW_USER_CALL) intrinsic nested inside it is then never rewritten into a user call, and the post-order assert fires.
Assert failure(PID 29500 [0x0000733c], Thread: 38784 [0x9780]): Assertion failed '!node->IsUserCall()' in 'P:Test(System.Runtime.Intrinsics.Vector128`1[byte],byte):System.Runtime.Intrinsics.Vector128`1[byte]' during 'Rationalize IR' (IL size 43; hash 0x86daef64; FullOpts)
File: src\coreclr\jit\rationalize.cpp:595
Exit code 0xC0000409 (fail-fast).
Notes
Sse2.ShiftRightLogical128BitLane(v, n) has a non-constant immediate, so it is imported as a deferred user-call intrinsic with a managed fallback handle.
The outer Vector128.Shuffle is also deferred at import, but optimization turns the indices into the constant identity permutation before rationalization, so gtNewSimdShuffleNode returns op1 unchanged.
On the result != nullptr path in RewriteHWIntrinsicAsUserCall, parents.Push(result) happens without re-running the pre-order visit for result, leaving the inner deferred node unconverted.
Checked-only today: a Release runtime prints the expected output, no observable bad codegen.
Activity