KEMBAR78
Inefficient codegen for certain `op and comparison` · Issue #11414 · dotnet/runtime · GitHub
Skip to content

Inefficient codegen for certain op and comparison #11414

@tannergooding

Description

@tannergooding

As per dotnet/coreclr#20788 (comment), we are currently generating some inefficient code for certain op and comparison scenarios.

For example, on if ((xbits ^ ybits) < 0), we are currently generating:

xor      edx, eax
test     edx, edx
jge      SHORT G_M7953_IG04

When we could get rid of the test and just generate:

xor edx, eax
jns SHORT G_M7953_IG04

category:cq
theme:codegen
skill-level:intermediate
cost:small

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions