Skip to content

ARM64: Optimize pair of "str wzr, [reg]" to "str xzr" #35136

@kunalspathak

Description

@kunalspathak
str     wzr, [x1,#8]
str     wzr, [x1,#12]

can be combined into str xzr if the stores are happening in subsequent memory.

str     xzr, [x1,#8]

I collected no. of such str pairs in framework libraries and found approx. 450 pairs in 353 methods.

Details:

str_str_wzr_to_str_xzr.txt

category:cq
theme:optimization
skill-level:intermediate
cost:small
impact:medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-arm64area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions