From 21d670927112ff6047a9a8f56a864a0c778b1956 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 27 Jan 2010 22:09:43 +0100 Subject: Avoid reuse of PHI registers, even for duplicate right PHIs. --- src/lj_asm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lj_asm.c b/src/lj_asm.c index 48b6ec5a..4f5610b0 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c @@ -2655,7 +2655,7 @@ static void asm_phi_fixup(ASMState *as) /* Setup right PHI reference. */ static void asm_phi(ASMState *as, IRIns *ir) { - RegSet allow = irt_isnum(ir->t) ? RSET_FPR : RSET_GPR; + RegSet allow = (irt_isnum(ir->t) ? RSET_FPR : RSET_GPR) & ~as->phiset; RegSet afree = (as->freeset & allow); IRIns *irl = IR(ir->op1); IRIns *irr = IR(ir->op2); -- cgit v1.2.3-55-g6feb