2 ms·
Register renaming on modern x86 (skylake or zen) doesn't even use an execution unit. It may not even use a spot in the uOP cache IIRC. That means 'mov eax, ebx'
by dragontamer 6y ago
Register renaming on modern x86 (skylake or zen) doesn't even use an execution unit. It may not even use a spot in the uOP cache IIRC. That means 'mov eax, ebx' uses minimal resources.
It still matters for taking up L1 space, but today's processors probably don't care about this list art anymore outside of code size.
Years ago, when mov actually created a write hazard and caused bubbles in your pipeline, this stuff was important. But not nearly as important anymore.
This post is still useful as a historical note, and as a reminder for how low level details can dramatically change over the decades, even within the same x86 instruction set.