by fweimer · 1y ago · 0 comments
I get the impression people believe that instruction density does not matter much in practice (at least for large cores). For example, x86-64 compilers generally prefer the longer VEX encoding (even in contexts where it does not help to avoid moves or transition penalties), or do not implement passes to avoid redundant REX prefixes.
The VEX encoding is actually only rarely longer than the legacy one, and frequently it is shorter.