diff options
author | Mike Pall <mike> | 2023-09-09 16:56:16 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2023-09-09 16:56:16 +0200 |
commit | 315dc3e776d3199269a464b17d07c48064d3fd09 (patch) | |
tree | 34334d4c4a4830f2d3b08ed26b3c4e0130ad778e /src/lj_emit_arm64.h | |
parent | 5149b0a3a2809fef155ff2b2f01c667d920db3c2 (diff) | |
download | luajit-315dc3e776d3199269a464b17d07c48064d3fd09.tar.gz luajit-315dc3e776d3199269a464b17d07c48064d3fd09.tar.bz2 luajit-315dc3e776d3199269a464b17d07c48064d3fd09.zip |
ARM64: Reload BASE via GL instead of spilling it.
Thanks to Peter Cawley. #1068.
Diffstat (limited to '')
-rw-r--r-- | src/lj_emit_arm64.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_emit_arm64.h b/src/lj_emit_arm64.h index 50e658dd..d4c54255 100644 --- a/src/lj_emit_arm64.h +++ b/src/lj_emit_arm64.h | |||
@@ -150,7 +150,7 @@ nopair: | |||
150 | /* -- Emit loads/stores --------------------------------------------------- */ | 150 | /* -- Emit loads/stores --------------------------------------------------- */ |
151 | 151 | ||
152 | /* Prefer rematerialization of BASE/L from global_State over spills. */ | 152 | /* Prefer rematerialization of BASE/L from global_State over spills. */ |
153 | #define emit_canremat(ref) ((ref) <= ASMREF_L) | 153 | #define emit_canremat(ref) ((ref) <= REF_BASE) |
154 | 154 | ||
155 | /* Try to find a one-step delta relative to other consts. */ | 155 | /* Try to find a one-step delta relative to other consts. */ |
156 | static int emit_kdelta(ASMState *as, Reg rd, uint64_t k, int is64) | 156 | static int emit_kdelta(ASMState *as, Reg rd, uint64_t k, int is64) |