Remove redundant load that is immediately after the store in same src/dst #35613
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
optimization
Milestone
I have seen below pattern in generated code for framework libraries. We can eliminate the
ldr
if it is loading the value into same register that was used to store in previous instruction in same memory location.Example of ARM64 code:
Example of x64 code:
There are approx. 2500 such patterns in 1500 methods. Details in str-ldr.txt.
category:cq
theme:basic-cq
skill-level:intermediate
cost:medium
The text was updated successfully, but these errors were encountered: