Lines Matching refs:ssa_op

1281 void zend_ssa_remove_instr(zend_ssa *ssa, zend_op *opline, zend_ssa_op *ssa_op) /* {{{ */  in zend_ssa_remove_instr()  argument
1283 if (ssa_op->result_use >= 0) { in zend_ssa_remove_instr()
1284 zend_ssa_unlink_use_chain(ssa, ssa_op - ssa->ops, ssa_op->result_use); in zend_ssa_remove_instr()
1285 ssa_op->result_use = -1; in zend_ssa_remove_instr()
1286 ssa_op->res_use_chain = -1; in zend_ssa_remove_instr()
1288 if (ssa_op->op1_use >= 0) { in zend_ssa_remove_instr()
1289 if (ssa_op->op1_use != ssa_op->op2_use) { in zend_ssa_remove_instr()
1290 zend_ssa_unlink_use_chain(ssa, ssa_op - ssa->ops, ssa_op->op1_use); in zend_ssa_remove_instr()
1292 ssa_op->op2_use_chain = ssa_op->op1_use_chain; in zend_ssa_remove_instr()
1294 ssa_op->op1_use = -1; in zend_ssa_remove_instr()
1295 ssa_op->op1_use_chain = -1; in zend_ssa_remove_instr()
1297 if (ssa_op->op2_use >= 0) { in zend_ssa_remove_instr()
1298 zend_ssa_unlink_use_chain(ssa, ssa_op - ssa->ops, ssa_op->op2_use); in zend_ssa_remove_instr()
1299 ssa_op->op2_use = -1; in zend_ssa_remove_instr()
1300 ssa_op->op2_use_chain = -1; in zend_ssa_remove_instr()
1304 ZEND_ASSERT(ssa_op->result_def == -1); in zend_ssa_remove_instr()
1305 ZEND_ASSERT(ssa_op->op1_def == -1); in zend_ssa_remove_instr()
1306 ZEND_ASSERT(ssa_op->op2_def == -1); in zend_ssa_remove_instr()
1364 void zend_ssa_remove_defs_of_instr(zend_ssa *ssa, zend_ssa_op *ssa_op) /* {{{ */ in zend_ssa_remove_defs_of_instr() argument
1366 if (ssa_op->op1_def >= 0) { in zend_ssa_remove_defs_of_instr()
1367 zend_ssa_remove_uses_of_var(ssa, ssa_op->op1_def); in zend_ssa_remove_defs_of_instr()
1368 zend_ssa_remove_op1_def(ssa, ssa_op); in zend_ssa_remove_defs_of_instr()
1370 if (ssa_op->op2_def >= 0) { in zend_ssa_remove_defs_of_instr()
1371 zend_ssa_remove_uses_of_var(ssa, ssa_op->op2_def); in zend_ssa_remove_defs_of_instr()
1372 zend_ssa_remove_op2_def(ssa, ssa_op); in zend_ssa_remove_defs_of_instr()
1374 if (ssa_op->result_def >= 0) { in zend_ssa_remove_defs_of_instr()
1375 zend_ssa_remove_uses_of_var(ssa, ssa_op->result_def); in zend_ssa_remove_defs_of_instr()
1376 zend_ssa_remove_result_def(ssa, ssa_op); in zend_ssa_remove_defs_of_instr()
1437 zend_ssa_op *ssa_op = &ssa->ops[use]; in zend_ssa_remove_uses_of_var() local
1438 if (ssa_op->op1_use == var_num) { in zend_ssa_remove_uses_of_var()
1439 ssa_op->op1_use = -1; in zend_ssa_remove_uses_of_var()
1440 ssa_op->op1_use_chain = -1; in zend_ssa_remove_uses_of_var()
1442 if (ssa_op->op2_use == var_num) { in zend_ssa_remove_uses_of_var()
1443 ssa_op->op2_use = -1; in zend_ssa_remove_uses_of_var()
1444 ssa_op->op2_use_chain = -1; in zend_ssa_remove_uses_of_var()
1446 if (ssa_op->result_use == var_num) { in zend_ssa_remove_uses_of_var()
1447 ssa_op->result_use = -1; in zend_ssa_remove_uses_of_var()
1448 ssa_op->res_use_chain = -1; in zend_ssa_remove_uses_of_var()
1610 zend_ssa_op *ssa_op = &ssa->ops[use]; in zend_ssa_rename_var_uses() local
1615 if (ssa_op->result_use == new) { in zend_ssa_rename_var_uses()
1617 } else if (ssa_op->op1_use == new) { in zend_ssa_rename_var_uses()
1618 if (ssa_op->result_use == old) { in zend_ssa_rename_var_uses()
1619 ssa_op->res_use_chain = ssa_op->op1_use_chain; in zend_ssa_rename_var_uses()
1620 ssa_op->op1_use_chain = -1; in zend_ssa_rename_var_uses()
1623 } else if (ssa_op->op2_use == new) { in zend_ssa_rename_var_uses()
1624 if (ssa_op->result_use == old) { in zend_ssa_rename_var_uses()
1625 ssa_op->res_use_chain = ssa_op->op2_use_chain; in zend_ssa_rename_var_uses()
1626 ssa_op->op2_use_chain = -1; in zend_ssa_rename_var_uses()
1627 } else if (ssa_op->op1_use == old) { in zend_ssa_rename_var_uses()
1628 ssa_op->op1_use_chain = ssa_op->op2_use_chain; in zend_ssa_rename_var_uses()
1629 ssa_op->op2_use_chain = -1; in zend_ssa_rename_var_uses()
1635 if (ssa_op->result_use == old) { in zend_ssa_rename_var_uses()
1636 ssa_op->result_use = new; in zend_ssa_rename_var_uses()
1638 if (ssa_op->op1_use == old) { in zend_ssa_rename_var_uses()
1639 ssa_op->op1_use = new; in zend_ssa_rename_var_uses()
1641 if (ssa_op->op2_use == old) { in zend_ssa_rename_var_uses()
1642 ssa_op->op2_use = new; in zend_ssa_rename_var_uses()
1648 if (ssa_op->result_use == new) { in zend_ssa_rename_var_uses()
1649 ssa_op->res_use_chain = new_var->use_chain; in zend_ssa_rename_var_uses()
1651 } else if (ssa_op->op1_use == new) { in zend_ssa_rename_var_uses()
1652 ssa_op->op1_use_chain = new_var->use_chain; in zend_ssa_rename_var_uses()
1655 ZEND_ASSERT(ssa_op->op2_use == new); in zend_ssa_rename_var_uses()
1656 ssa_op->op2_use_chain = new_var->use_chain; in zend_ssa_rename_var_uses()