diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index 4b13cdcfc0c..b5022636536 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -791,7 +791,6 @@ static int zend_jit_trace_copy_ssa_var_info(const zend_op_array *op_array, const { int var, use, def, src; zend_ssa_op *op; - uint32_t n; if (tssa->vars[ssa_var].definition_phi) { uint32_t b = ssa->cfg.map[tssa_opcodes[0] - op_array->opcodes]; @@ -817,8 +816,10 @@ static int zend_jit_trace_copy_ssa_var_info(const zend_op_array *op_array, const src = pi->ssa_var; goto copy_info; } - +#if 0 while (bb->idom >= 0) { + uint32_t n; + b = bb->idom; bb = ssa->cfg.blocks + b; @@ -854,6 +855,7 @@ static int zend_jit_trace_copy_ssa_var_info(const zend_op_array *op_array, const goto copy_info; } } +#endif } } else if (tssa->vars[ssa_var].definition >= 0) { def = tssa->vars[ssa_var].definition; diff --git a/ext/opcache/tests/jit/reg_alloc_020.phpt b/ext/opcache/tests/jit/reg_alloc_020.phpt new file mode 100644 index 00000000000..ae6d3583cee --- /dev/null +++ b/ext/opcache/tests/jit/reg_alloc_020.phpt @@ -0,0 +1,21 @@ +--TEST-- +Register Alloction 020: Incorrect TSSA type inference +--INI-- +opcache.enable=1 +opcache.enable_cli=1 +opcache.file_update_protection=0 +opcache.jit_buffer_size=1M +--FILE-- + +DONE +--EXPECTF-- +DONE