@@ -5413,7 +5413,7 @@ static int zend_jit_long_math_helper(zend_jit_ctx *jit,
5413
5413
jit_SET_EX_OPLINE(jit, opline);
5414
5414
ir_GUARD(IR_FALSE, jit_STUB_ADDR(jit, jit_stub_negative_shift));
5415
5415
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
5417
5417
}
5418
5418
}
5419
5419
} else {
@@ -5462,7 +5462,7 @@ static int zend_jit_long_math_helper(zend_jit_ctx *jit,
5462
5462
jit_SET_EX_OPLINE(jit, opline);
5463
5463
ir_GUARD(IR_FALSE, jit_STUB_ADDR(jit, jit_stub_negative_shift));
5464
5464
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
5466
5466
}
5467
5467
}
5468
5468
} else {
@@ -5503,7 +5503,7 @@ static int zend_jit_long_math_helper(zend_jit_ctx *jit,
5503
5503
jit_SET_EX_OPLINE(jit, opline);
5504
5504
ir_GUARD(IR_FALSE, jit_STUB_ADDR(jit, jit_stub_mod_by_zero));
5505
5505
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
5507
5507
}
5508
5508
} else if (zend_long_is_power_of_two(op2_lval) && op1_range && op1_range->min >= 0) {
5509
5509
ref = ir_AND_L(jit_Z_LVAL(jit, op1_addr), ir_CONST_LONG(op2_lval - 1));
0 commit comments