[Patch / Refactor] Maintenance of ARM/AARCH64 Peephole Optimizer
Original Reporter info from Mantis: CuriousKit @CuriousKit
-
Reporter name: J. Gareth Moreton
Original Reporter info from Mantis: CuriousKit @CuriousKit
- Reporter name: J. Gareth Moreton
Description:
This patch refactors the Peephole Optimizer for ARM and AARCH64 platforms, especially the former where individual optimisations in Pass 1 are moved to separate subroutines. This will aid future maintenance and expansion of the Peephole Optimizer for these two platforms.
Steps to reproduce:
Apply patch and confirm identical compilation
Additional information:
Some minor efficiency changes were made, such as attempting to reduce the number of calls to GetNextInstruction by rearranging conditions in if-statements, or factoring out common conditions.