mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Improve register allocation on x64.
This commit is contained in:
parent
20fa30b388
commit
32309583e5
@ -791,6 +791,11 @@ static Reg ra_allocref(ASMState *as, IRRef ref, RegSet allow)
|
|||||||
pick &= ~as->modset;
|
pick &= ~as->modset;
|
||||||
r = rset_pickbot(pick); /* Reduce conflicts with inverse allocation. */
|
r = rset_pickbot(pick); /* Reduce conflicts with inverse allocation. */
|
||||||
} else {
|
} else {
|
||||||
|
#if LJ_64
|
||||||
|
/* We've got plenty of regs, so get callee-save regs if possible. */
|
||||||
|
if ((pick & ~RSET_SCRATCH))
|
||||||
|
pick &= ~RSET_SCRATCH;
|
||||||
|
#endif
|
||||||
r = rset_picktop(pick);
|
r = rset_picktop(pick);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user