ARM64: Reload BASE via GL instead of spilling it.

Thanks to Peter Cawley. #1068.
This commit is contained in:
Mike Pall
2023-09-09 16:56:16 +02:00
parent 5149b0a3a2
commit 315dc3e776
2 changed files with 38 additions and 55 deletions

View File

@@ -150,7 +150,7 @@ nopair:
/* -- Emit loads/stores --------------------------------------------------- */
/* Prefer rematerialization of BASE/L from global_State over spills. */
#define emit_canremat(ref) ((ref) <= ASMREF_L)
#define emit_canremat(ref) ((ref) <= REF_BASE)
/* Try to find a one-step delta relative to other consts. */
static int emit_kdelta(ASMState *as, Reg rd, uint64_t k, int is64)