Skip to content

JIT, SIMD Intrinsics: Recognize ~A & B as VectorXxx.AndNot(B, A) #78303

Closed
@sunkin351

Description

@sunkin351

I love the new SIMD intrinsic surface area you guys have released with .NET 7, and would like to propose this improvement to JIT pattern recognition.

Although micro-benchmarks don't reveal any performance improvement on my CPU to use the AndNot() intrinsic over ~A & B, it does to my knowledge result in 1 or more fewer instructions and thus benefits code size.

For reference, my CPU is a Ryzen 2700.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIgood first issueIssue should be easy to implement, good for first-time contributorshelp wanted[up-for-grabs] Good issue for external contributors

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions