diff options
| author | Bram Speeckaert <bram.speeckaert@gmail.com> | 2022-11-01 11:51:57 +0100 |
|---|---|---|
| committer | Bram Speeckaert <bram.speeckaert@gmail.com> | 2022-11-01 11:52:00 +0100 |
| commit | 592ba31e224c062fe558dad21d2f605196df0b31 (patch) | |
| tree | 5c1240e3331aed006238740777a9b6537f57e539 /Source/Core/VideoCommon/CommandProcessor.cpp | |
| parent | f5e7e70cc5078915656aafaa7c6ccb3a38d62b05 (diff) | |
JitArm64: cmp - Optimize a == 0 case
By explicitly handling this, we can avoid materializing zero in a
register and generate more efficient code altogether.
Before:
0x52800016 mov w22, #0x0
0xb94093b5 ldr w21, [x29, #0x90]
0x93407ed7 sxtw x23, w22
0x93407eb9 sxtw x25, w21
0xcb1902f9 sub x25, x23, x25
After:
0xb94093b7 ldr w23, [x29, #0x90]
0x4b1703f9 neg w25, w23
0x93407f39 sxtw x25, w25
Diffstat (limited to 'Source/Core/VideoCommon/CommandProcessor.cpp')
0 files changed, 0 insertions, 0 deletions
