Skip to content

Commit edb4ee0

Browse files
committed
Initialize CV variables through FP (this enables some folding optimizatios)
1 parent 8a8a5c5 commit edb4ee0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9522,9 +9522,9 @@ static int zend_jit_do_fcall(zend_jit_ctx *jit, const zend_op *opline, const zen
95229522

95239523
for (i = call_num_args; i < func->op_array.last_var; i++) {
95249524
uint32_t n = EX_NUM_TO_VAR(i);
9525-
zend_jit_addr var_addr = ZEND_ADDR_MEM_ZVAL(ZREG_RX, n);
9525+
zend_jit_addr var_addr = ZEND_ADDR_MEM_ZVAL(ZREG_FP, n);
95269526

9527-
jit_set_Z_TYPE_INFO(jit, var_addr, IS_UNDEF);
9527+
jit_set_Z_TYPE_INFO_ex(jit, var_addr, ir_CONST_U32(IS_UNDEF));
95289528
}
95299529

95309530
if (call_num_args <= func->op_array.num_args) {

0 commit comments

Comments
 (0)