8/2/2026 at 1:12:52 AM
IMHO this may be because with hyper-restrictive calling convention or register budgets, the compiler typically resorts to writing explicit MOV or stack PUSH/POP instructions to free up space.Because modern CPUs have hundreds of hidden physical registers, the CPU's Register Renaming unit looks at those forced stack move instructions, realizes they are just recycling the same local variables, and maps them to hidden hardware registers anyway. The CPU essentially executes the "stack spills" at the hardware register level, rendering the compiler's bad register constraints almost completely harmless.
Particularly the siphash result makes me think this is what is happening.
Unfortunately I don’t think there is a way to observe this as a consumer.
by nyrikki
8/2/2026 at 3:41:02 AM
I would kill to see the equipment intel uses to study these thingsby mfro
8/2/2026 at 6:09:28 AM
I thought VTune would let you see into it to some extent.by throwaway81523