dotnet/runtime

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

Chiusa

#81.189 aperta il 25 gen 2023

 (1 commento) (0 reazioni) (0 assegnatari)C# (5445 fork)batch import
area-CodeGen-coreclrhelp wantedtenet-performance

Metriche repository

Star
 (17.886 stelle)
Metriche merge PR
 (Merge medio 12g 11h) (661 PR mergiate in 30 g)

Descrizione

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.

Guida contributor