Performance difference between 2 code patterns doing same thing #100493
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
tenet-performance
Performance related issue
Milestone
Description
Ran into it as part of this PR - #99982 relevant comment thread here - #99982 (comment)
The following 2 Code patterns are logically the same
They seem to produce same assembly : https://godbolt.org/z/1rzEcj8ar
The PR referred above uses the pattern in
HasMatch3
. When I try the pattern inHasMatch2
, the performance degradesHow to reproduce
((vector & Vector256.Create((byte)0x80)) != Vector256<byte>.Zero);
Data
The text was updated successfully, but these errors were encountered: