You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.unaligned prefix ignored on initblk and cpblk #5236
Strictly speaking the JIT needs to make sure to generate references that are aligned with respect to the byte size specified by any unaligned prefix on initblk and cpblk. Today's implemented ignores them.
For some architectures, generating unaligned references may cause execution faults at runtime. For others, they can be less efficient than aligned references. At the moment all the targets RyuJIT supports do not require this for correctness, but might benefit on the performance side, especially for large block operations.
The MC++ compiler does generate these block operations today with unaligned prefixes to capture the original access size when vectorizing array initialization loops to block set operations (initblk).
Activity
EgorBo commentedon Jun 22, 2024
It's no longer ignored:
runtime/src/coreclr/jit/importer.cpp
Lines 10397 to 10402 in 0262a63