Skip to content

[Jit] Skip test instruction after add? #32389

@benaadams

Description

@benaadams

The following C#

long lengthToExamine = length - Vector256<byte>.Count;
if (lengthToExamine != 0)
{

Produces asm:

add      r8, -32
test     r8, r8
je       SHORT G_M64667_IG11

However add sets flags so could this be?

add      r8, -32
jz       SHORT G_M64667_IG11

category:cq
theme:optimization
skill-level:expert
cost:medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIoptimization

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions