@@ -3505,7 +3505,8 @@ static int zend_jit_math(dasm_State **Dst, const zend_op *opline, int *opnum, ze
3505
3505
if (opline->result_type == IS_TMP_VAR &&
3506
3506
(opline+1)->opcode == ZEND_SEND_VAL &&
3507
3507
(opline+1)->op1_type == IS_TMP_VAR &&
3508
- (opline+1)->op1.var == opline->result.var) {
3508
+ (opline+1)->op1.var == opline->result.var &&
3509
+ ssa->cfg.map[(opline+1) - op_array->opcodes] == ssa->cfg.map[opline - op_array->opcodes]) {
3509
3510
/* Eliminate the following SEND_VAL */
3510
3511
(*opnum)++;
3511
3512
if (!reuse_ip) {
@@ -3839,7 +3840,8 @@ static int zend_jit_long_math(dasm_State **Dst, const zend_op *opline, int *opnu
3839
3840
if (opline->result_type == IS_TMP_VAR &&
3840
3841
(opline+1)->opcode == ZEND_SEND_VAL &&
3841
3842
(opline+1)->op1_type == IS_TMP_VAR &&
3842
- (opline+1)->op1.var == opline->result.var) {
3843
+ (opline+1)->op1.var == opline->result.var &&
3844
+ ssa->cfg.map[(opline+1) - op_array->opcodes] == ssa->cfg.map[opline - op_array->opcodes]) {
3843
3845
/* Eliminate the following SEND_VAL */
3844
3846
(*opnum)++;
3845
3847
if (!reuse_ip) {
@@ -3980,7 +3982,8 @@ static int zend_jit_concat(dasm_State **Dst, const zend_op *opline, int *opnum,
3980
3982
if (opline->result_type == IS_TMP_VAR &&
3981
3983
(opline+1)->opcode == ZEND_SEND_VAL &&
3982
3984
(opline+1)->op1_type == IS_TMP_VAR &&
3983
- (opline+1)->op1.var == opline->result.var) {
3985
+ (opline+1)->op1.var == opline->result.var &&
3986
+ ssa->cfg.map[(opline+1) - op_array->opcodes] == ssa->cfg.map[opline - op_array->opcodes]) {
3984
3987
/* Eliminate the following SEND_VAL */
3985
3988
(*opnum)++;
3986
3989
if (!reuse_ip) {
0 commit comments