@@ -5413,7 +5413,7 @@ static int zend_jit_long_math_helper(zend_jit_ctx *jit,
54135413 jit_SET_EX_OPLINE(jit, opline);
54145414 ir_GUARD(IR_FALSE, jit_STUB_ADDR(jit, jit_stub_negative_shift));
54155415 if (Z_MODE(res_addr) == IS_REG) {
5416- zend_jit_def_reg(jit, res_addr, ir_CONST_LONG(0) ); // dead code
5416+ ref = ir_CONST_LONG(0); // dead code
54175417 }
54185418 }
54195419 } else {
@@ -5462,7 +5462,7 @@ static int zend_jit_long_math_helper(zend_jit_ctx *jit,
54625462 jit_SET_EX_OPLINE(jit, opline);
54635463 ir_GUARD(IR_FALSE, jit_STUB_ADDR(jit, jit_stub_negative_shift));
54645464 if (Z_MODE(res_addr) == IS_REG) {
5465- zend_jit_def_reg(jit, res_addr, ir_CONST_LONG(0) ); // dead code
5465+ ref = ir_CONST_LONG(0); // dead code
54665466 }
54675467 }
54685468 } else {
@@ -5503,7 +5503,7 @@ static int zend_jit_long_math_helper(zend_jit_ctx *jit,
55035503 jit_SET_EX_OPLINE(jit, opline);
55045504 ir_GUARD(IR_FALSE, jit_STUB_ADDR(jit, jit_stub_mod_by_zero));
55055505 if (Z_MODE(res_addr) == IS_REG) {
5506- zend_jit_def_reg(jit, res_addr, ir_CONST_LONG(0) ); // dead code
5506+ ref = ir_CONST_LONG(0); // dead code
55075507 }
55085508 } else if (zend_long_is_power_of_two(op2_lval) && op1_range && op1_range->min >= 0) {
55095509 ref = ir_AND_L(jit_Z_LVAL(jit, op1_addr), ir_CONST_LONG(op2_lval - 1));
0 commit comments