Fix fused constant loads under high register pressure.

This commit is contained in:
Mike Pall
2014-10-08 22:04:51 +02:00
parent 4846a714a9
commit 6d0654d3ec
2 changed files with 10 additions and 1 deletions

View File

@@ -353,6 +353,7 @@ static Reg ra_rematk(ASMState *as, IRRef ref)
static int32_t ra_spill(ASMState *as, IRIns *ir)
{
int32_t slot = ir->s;
lua_assert(ir >= as->ir + REF_TRUE);
if (!ra_hasspill(slot)) {
if (irt_is64(ir->t)) {
slot = as->evenspill;