From c98132e182b25e8734fff0f4152ba747a2da461a Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Fri, 17 Dec 2010 16:47:28 +0100 Subject: [PATCH] FFI: FOLD load of initializers even across PHIs. --- src/lj_opt_fold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_opt_fold.c b/src/lj_opt_fold.c index cbcbb448..74b15f32 100644 --- a/src/lj_opt_fold.c +++ b/src/lj_opt_fold.c @@ -1603,7 +1603,7 @@ LJFOLDF(fload_cdata_init_cnew) { if (LJ_LIKELY(J->flags & JIT_F_OPT_FOLD)) { IRIns *ir = fleft; - PHIBARRIER(fleft); + /* Fold even across PHI to avoid expensive allocations. */ lua_assert(ir->op1 != REF_NIL); if (IR(ir->op1)->o == IR_CARG) ir = IR(ir->op1); return fins->op2 == IRFL_CDATA_INIT1 ? ir->op1 : ir->op2;