Skip to content

Arm64/Sve: Removal of ConditionalSelect's operands when mask is AllFalse/AllTrue #104116

@kunalspathak

Description

@kunalspathak

Today, for ConditionalSelect, we will just eliminate trueValue , if we see the mask is AllZero.

else if (op1->IsVectorZero())
{
return retNode->AsHWIntrinsic()->Op(3);
}

This will fail if trueValue has a side-effect or a method call.

https://godbolt.org/z/qbbYenW9j

Thanks @TIHan for bringing it to attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIarm-sveWork related to arm64 SVE/SVE2 support

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions