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
Half.ReciprocalEstimate and Half.ReciprocalSqrtEstimate can be expanded into hardware estimate instructions in ReadyToRun images, bypassing the policy that blocks non-deterministic estimate intrinsics from R2R code.
Reproduces when crossgen2 compiles the assembly as ReadyToRun with an estimate-capable target ISA such as avx10v1.
Expected
The estimate APIs stay as calls in the R2R image, matching the MathF estimate intrinsics and preserving deterministic ReadyToRun behavior across hardware.
Actual
The Half estimate overloads bake hardware estimate instructions into the R2R body, while the equivalent MathF APIs remain calls:
Half.Sqrt shares the importer case but is IEEE-exact; only the two estimate intrinsics need the guard.
The Half intrinsic path uses compOpportunisticallyDependsOn and never calls BlockNonDeterministicIntrinsics, unlike Compiler::impEstimateIntrinsic for MathF.
A likely fix is to split the Half estimate cases and apply the same R2R blocking and exact-ISA dependency policy as the existing estimate intrinsic path.
Activity
dotnet-policy-service commentedon Sep 15, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
JIT: Preserve Half estimate ISA dependencies in ReadyToRun (#135692)