From 872787c5f78468bd0be233cb4ab4bdcac8979f96 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 13 Oct 2020 11:37:33 +0300 Subject: [PATCH] Avoid useless register allocation --- ext/opcache/jit/zend_jit_trace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index 598815dfe3..31d1243728 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -2157,6 +2157,7 @@ static zend_lifetime_interval** zend_jit_trace_allocate_registers(zend_jit_trace vars_op_array[i] = op_array; /* We don't start intervals for variables used in Phi */ if ((ssa->vars[i].use_chain >= 0 /*|| ssa->vars[i].phi_use_chain*/) + && !zend_ssa_is_no_val_use(ssa_opcodes[ssa->vars[i].use_chain], ssa->ops + ssa->vars[i].use_chain, i) && zend_jit_var_supports_reg(ssa, i) && zend_jit_var_may_alias(op_array, op_array_ssa, i) == NO_ALIAS) { start[i] = 0; -- 2.40.0