[JIT] Naiive implementation of Span Reverse should produce optimal codegen #9577
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
enhancement
Product code improvement that does NOT require public API changes/additions
JitUntriaged
CLR JIT issues needing additional triage
optimization
tenet-performance
Performance related issue
Milestone
From dotnet/corefx#26381 (comment):
Here is the naiive implementation which uses a single temporary local for swapping elements. This produces sub-optimal disassembly since it contains an unnecessary mov/lea in the loop body.:
The following implementation results in better disassembly, but we shouldn't expect users to write code in this way without the unnecessary mov/lea instructions within the loop body:
cc @jkotas, @AndyAyersMS, @GrabYourPitchforks
category:cq
theme:basic-cq
skill-level:intermediate
cost:medium
The text was updated successfully, but these errors were encountered: