-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Suboptimal codegen when comparing sbyte and 16-bit values #10337
Copy link
Copy link
Closed
Labels
JitUntriagedCLR JIT issues needing additional triageCLR JIT issues needing additional triagearea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedoptimization
Milestone
Metadata
Metadata
Assignees
Labels
JitUntriagedCLR JIT issues needing additional triageCLR JIT issues needing additional triagearea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedoptimization
Type
Fields
Give feedbackNo fields configured for issues without a type.
I have the following two repro methods along with their x64 codegen using the latest RyuJIT.
The Foo method checks to see if the high bit is clear, and the Bar method checks to see if the byte has input pattern
10xxxxxx. These are both common operations when performing UTF-8 text processing. In the examples above, the Bar method has suboptimal codegen. I would instead expect the codegen to be the following.category:cq
theme:basic-cq
skill-level:intermediate
cost:small