mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-09 06:00:15 +02:00
The only reason we need to XOR arguments for AF is to get bit 4 correct. But if the operand in question is known to have bit 4 clear, the XOR will be an effective no-op and can be skipped. This saves an instruction in a bunch of common cases, like inc/dec. If we dedicated a register to AF to eliminate the store, we would not save an instruction from this but would still come out ahead due to an eor turning into a (zero cycle?) mov that can be handled by the renamer. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>