dotnet/runtime

[JIT] Possible optimization for `x % {pow2_cns}` transformation for `ulong` types

Closed

#81,189 opened on Jan 25, 2023

 (1 comment) (0 reactions) (0 assignees)C# (5,445 forks)batch import
area-CodeGen-coreclrhelp wantedtenet-performance

Repository metrics

Stars
 (17,886 stars)
PR merge metrics
 (Avg merge 12d 11h) (661 merged PRs in 30d)

Description

At the moment, we do not optimize x % {pow2_cns} to x & (pow2_cns - 1) for ulong types as they get transformed differently in morph.cpp. I believe we should only do this for X64 and not X86.

Contributor guide