mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-15 01:00:53 +02:00
When SubShift (LSL) occurs with both sources constant then optimize away the calculation. Additionally if add is found to have one immediate constant where the inverse of the constant fits in to ImmAddSub range, then invert the constant and change it in to a sub. This optimizes the cases when direction flag is known upfront in an instruction.