Lines Matching refs:ssa_op
1223 void zend_ssa_remove_instr(zend_ssa *ssa, zend_op *opline, zend_ssa_op *ssa_op) /* {{{ */ in zend_ssa_remove_instr() argument
1225 if (ssa_op->result_use >= 0) { in zend_ssa_remove_instr()
1226 zend_ssa_unlink_use_chain(ssa, ssa_op - ssa->ops, ssa_op->result_use); in zend_ssa_remove_instr()
1227 ssa_op->result_use = -1; in zend_ssa_remove_instr()
1228 ssa_op->res_use_chain = -1; in zend_ssa_remove_instr()
1230 if (ssa_op->op1_use >= 0) { in zend_ssa_remove_instr()
1231 if (ssa_op->op1_use != ssa_op->op2_use) { in zend_ssa_remove_instr()
1232 zend_ssa_unlink_use_chain(ssa, ssa_op - ssa->ops, ssa_op->op1_use); in zend_ssa_remove_instr()
1234 ssa_op->op2_use_chain = ssa_op->op1_use_chain; in zend_ssa_remove_instr()
1236 ssa_op->op1_use = -1; in zend_ssa_remove_instr()
1237 ssa_op->op1_use_chain = -1; in zend_ssa_remove_instr()
1239 if (ssa_op->op2_use >= 0) { in zend_ssa_remove_instr()
1240 zend_ssa_unlink_use_chain(ssa, ssa_op - ssa->ops, ssa_op->op2_use); in zend_ssa_remove_instr()
1241 ssa_op->op2_use = -1; in zend_ssa_remove_instr()
1242 ssa_op->op2_use_chain = -1; in zend_ssa_remove_instr()
1246 ZEND_ASSERT(ssa_op->result_def == -1); in zend_ssa_remove_instr()
1247 ZEND_ASSERT(ssa_op->op1_def == -1); in zend_ssa_remove_instr()
1248 ZEND_ASSERT(ssa_op->op2_def == -1); in zend_ssa_remove_instr()
1306 static inline void zend_ssa_remove_defs_of_instr(zend_ssa *ssa, zend_ssa_op *ssa_op) /* {{{ */ in zend_ssa_remove_defs_of_instr() argument
1308 if (ssa_op->op1_def >= 0) { in zend_ssa_remove_defs_of_instr()
1309 zend_ssa_remove_uses_of_var(ssa, ssa_op->op1_def); in zend_ssa_remove_defs_of_instr()
1310 zend_ssa_remove_op1_def(ssa, ssa_op); in zend_ssa_remove_defs_of_instr()
1312 if (ssa_op->op2_def >= 0) { in zend_ssa_remove_defs_of_instr()
1313 zend_ssa_remove_uses_of_var(ssa, ssa_op->op2_def); in zend_ssa_remove_defs_of_instr()
1314 zend_ssa_remove_op2_def(ssa, ssa_op); in zend_ssa_remove_defs_of_instr()
1316 if (ssa_op->result_def >= 0) { in zend_ssa_remove_defs_of_instr()
1317 zend_ssa_remove_uses_of_var(ssa, ssa_op->result_def); in zend_ssa_remove_defs_of_instr()
1318 zend_ssa_remove_result_def(ssa, ssa_op); in zend_ssa_remove_defs_of_instr()
1379 zend_ssa_op *ssa_op = &ssa->ops[use]; in zend_ssa_remove_uses_of_var() local
1380 if (ssa_op->op1_use == var_num) { in zend_ssa_remove_uses_of_var()
1381 ssa_op->op1_use = -1; in zend_ssa_remove_uses_of_var()
1382 ssa_op->op1_use_chain = -1; in zend_ssa_remove_uses_of_var()
1384 if (ssa_op->op2_use == var_num) { in zend_ssa_remove_uses_of_var()
1385 ssa_op->op2_use = -1; in zend_ssa_remove_uses_of_var()
1386 ssa_op->op2_use_chain = -1; in zend_ssa_remove_uses_of_var()
1388 if (ssa_op->result_use == var_num) { in zend_ssa_remove_uses_of_var()
1389 ssa_op->result_use = -1; in zend_ssa_remove_uses_of_var()
1390 ssa_op->res_use_chain = -1; in zend_ssa_remove_uses_of_var()
1543 zend_ssa_op *ssa_op = &ssa->ops[use]; in zend_ssa_rename_var_uses() local
1548 if (ssa_op->result_use == new) { in zend_ssa_rename_var_uses()
1550 } else if (ssa_op->op1_use == new) { in zend_ssa_rename_var_uses()
1551 if (ssa_op->result_use == old) { in zend_ssa_rename_var_uses()
1552 ssa_op->res_use_chain = ssa_op->op1_use_chain; in zend_ssa_rename_var_uses()
1553 ssa_op->op1_use_chain = -1; in zend_ssa_rename_var_uses()
1556 } else if (ssa_op->op2_use == new) { in zend_ssa_rename_var_uses()
1557 if (ssa_op->result_use == old) { in zend_ssa_rename_var_uses()
1558 ssa_op->res_use_chain = ssa_op->op2_use_chain; in zend_ssa_rename_var_uses()
1559 ssa_op->op2_use_chain = -1; in zend_ssa_rename_var_uses()
1560 } else if (ssa_op->op1_use == old) { in zend_ssa_rename_var_uses()
1561 ssa_op->op1_use_chain = ssa_op->op2_use_chain; in zend_ssa_rename_var_uses()
1562 ssa_op->op2_use_chain = -1; in zend_ssa_rename_var_uses()
1568 if (ssa_op->result_use == old) { in zend_ssa_rename_var_uses()
1569 ssa_op->result_use = new; in zend_ssa_rename_var_uses()
1571 if (ssa_op->op1_use == old) { in zend_ssa_rename_var_uses()
1572 ssa_op->op1_use = new; in zend_ssa_rename_var_uses()
1574 if (ssa_op->op2_use == old) { in zend_ssa_rename_var_uses()
1575 ssa_op->op2_use = new; in zend_ssa_rename_var_uses()
1581 if (ssa_op->result_use == new) { in zend_ssa_rename_var_uses()
1582 ssa_op->res_use_chain = new_var->use_chain; in zend_ssa_rename_var_uses()
1584 } else if (ssa_op->op1_use == new) { in zend_ssa_rename_var_uses()
1585 ssa_op->op1_use_chain = new_var->use_chain; in zend_ssa_rename_var_uses()
1588 ZEND_ASSERT(ssa_op->op2_use == new); in zend_ssa_rename_var_uses()
1589 ssa_op->op2_use_chain = new_var->use_chain; in zend_ssa_rename_var_uses()