summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/ShaderCache.cpp
diff options
context:
space:
mode:
authorSintendo <3380580+Sintendo@users.noreply.github.com>2024-06-26 00:07:20 +0200
committerSintendo <3380580+Sintendo@users.noreply.github.com>2024-06-29 23:08:02 +0200
commitd877cfa4e2c3baf3cb8b8449d1608e1c2f05208c (patch)
treecfcd36eae47a4ec421cde11fddcec577f03b5ab9 /Source/Core/VideoCommon/ShaderCache.cpp
parentf49659fbfc931fde6478d3c5d0fc445bfb62d3bf (diff)
JitArm64_Integer: Optimize subfic for zero
When the immediate value is zero, we can do a negation. On ARM64 the NEG /NEGS instructions are just an alias for SUB/SUBS with a hardcoded WZR. Before: ``` ldr w22, [x29, #0x28] mov w21, #0x0 ; =0 subs w22, w21, w22 ``` After: ``` ldr w22, [x29, #0x28] negs w22, w22 ```
Diffstat (limited to 'Source/Core/VideoCommon/ShaderCache.cpp')
0 files changed, 0 insertions, 0 deletions