Enable RIP-relative addressing for JIT access to class statics on x64 non-windows #8545
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
os-freebsd
FreeBSD OS
os-linux
Linux OS (any supported distro)
os-mac-os-x
macOS aka OSX
tenet-performance
Performance related issue
Milestone
getRelocTypeHint
always returns false on Linux, so the JIT always ends up using a full literal 64 bit displacement to access static fields. This makes static field access relatively more expensive, both in terms of code size and instruction count (especially so since the JIT does not CSE large literals). For instance, to increment a static and return the incremented value:category:cq
theme:runtime
skill-level:expert
cost:medium
The text was updated successfully, but these errors were encountered: