summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/CommandProcessor.cpp
diff options
context:
space:
mode:
authorBram Speeckaert <bram.speeckaert@gmail.com>2022-11-01 12:00:16 +0100
committerBram Speeckaert <bram.speeckaert@gmail.com>2022-11-01 12:00:32 +0100
commit82f22cdfa1fbaeaac8cf608294c4dc730ee0f099 (patch)
tree48b9dc22cb830060db7215d589e10843212a4441 /Source/Core/VideoCommon/CommandProcessor.cpp
parent592ba31e224c062fe558dad21d2f605196df0b31 (diff)
JitArm64: cmp - Optimize a == -1 case
By explicitly handling this, we can avoid materializing -1 in a register and generate more efficient code by taking advantage of -x == ~x + 1. Before: 0x12800015 mov w21, #-0x1 0x93407eb9 sxtw x25, w21 0x93407ef8 sxtw x24, w23 0xcb180338 sub x24, x25, x24 After: 0x2a3703f8 mvn w24, w23 0x93407f18 sxtw x24, w24
Diffstat (limited to 'Source/Core/VideoCommon/CommandProcessor.cpp')
0 files changed, 0 insertions, 0 deletions