iximeow / yaxpeax-x86

x86 decoders for the yaxpeax project
BSD Zero Clause License
129 stars 23 forks source link

O p t i m i z e #23

Closed iximeow closed 9 months ago

iximeow commented 2 years ago

draft PR of a few things that substantially improved decode throughput on both my zen2 machine and a cascade lake machine i compared against.

important bits are making a fast path for the most common opcode decoding routes (optional rex + opcode byte). there's a branch that turns into a LUT that helped a bit too.

this breaks the annotation reporting code because offsets are wrong. panics in debug mode and everything. i need to port this code to 32- and 16-bit modes before merging it too. but i want to show it off so here it is :)

iximeow commented 9 months ago

this all since landed in no-gods-no-