JIT: Control-flow guard checked calls should preference call target to validator-preserved register #65077
Labels
arch-arm64
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
optimization
Milestone
Description
We currently see an unnecessary reg-reg mov for the call target when CFG enabled code is generated. Usually only happens on arm64 because on x64 the register that the validator takes the target in is
rcx
and so conflicts with the first argument anyway.Reproduction Steps
We produce the following code:
Expected behavior
Actual behavior
No unnecessary reg-reg mov.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
category:cq
theme:register-allocator
The text was updated successfully, but these errors were encountered: