[Refactor] OptPass2Jcc clean-up
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 is a minor refactor of the x86 Peephole Optimizer function OptPass2Jcc after my original submission of its redesign over in #36271 (closed). It seeks to remove duplicate functionality that was left-over from before its overhaul.
Genereated code should be completely identical, but the particular routine is smaller and faster now.
Steps to reproduce:
Apply patch and confirm correct compilation. Optionally, compare the compiler, with and without the patch applied, to determine that the generated binaries of some particular project (other than the compiler itself) are identical.
Additional information:
Duplicate functionality is in regards to stripping alignment fields of dead labels when optimising Jcc/MOV instructions into CMOV instructions.
Mantis conversion info:
- Mantis ID: 36295
- OS: Microsoft Windows
- OS Build: 10 Professional
- Build: r43451
- Platform: x86_64 (all OS's)
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 43452 (#83a11c2a)