Lines Matching refs:op_2
1407 int op_2 = ssa->vars[src_var].definition; in zend_dfa_optimize_op_array() local
1414 ssa->vars[v].definition = op_2; in zend_dfa_optimize_op_array()
1415 ssa->ops[op_2].result_def = v; in zend_dfa_optimize_op_array()
1428 op_array->opcodes[op_2].result_type = opline->result_type; in zend_dfa_optimize_op_array()
1429 op_array->opcodes[op_2].result.var = opline->result.var; in zend_dfa_optimize_op_array()
1434 if (op_array->opcodes[op_2].opcode == ZEND_SUB in zend_dfa_optimize_op_array()
1435 && op_array->opcodes[op_2].op1_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1436 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1437 && op_array->opcodes[op_2].op2_type == IS_CONST in zend_dfa_optimize_op_array()
1438 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1439 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == 1 in zend_dfa_optimize_op_array()
1440 && ssa->ops[op_2].op1_use >= 0 in zend_dfa_optimize_op_array()
1441 …&& !(ssa->var_info[ssa->ops[op_2].op1_use].type & (MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_STRING|MAY_BE_A… in zend_dfa_optimize_op_array()
1443 op_array->opcodes[op_2].opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1444 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1445 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1447 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1448 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1450 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1451 && op_array->opcodes[op_2].op1_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1452 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1453 && op_array->opcodes[op_2].op2_type == IS_CONST in zend_dfa_optimize_op_array()
1454 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1455 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == 1 in zend_dfa_optimize_op_array()
1456 && ssa->ops[op_2].op1_use >= 0 in zend_dfa_optimize_op_array()
1457 …&& !(ssa->var_info[ssa->ops[op_2].op1_use].type & (MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_STRING|MAY_BE_A… in zend_dfa_optimize_op_array()
1459 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1460 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1461 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1463 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1464 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1466 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1467 && op_array->opcodes[op_2].op2_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1468 && op_array->opcodes[op_2].op2.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1469 && op_array->opcodes[op_2].op1_type == IS_CONST in zend_dfa_optimize_op_array()
1470 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op1.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1471 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op1.constant)) == 1 in zend_dfa_optimize_op_array()
1472 && ssa->ops[op_2].op2_use >= 0 in zend_dfa_optimize_op_array()
1473 …&& !(ssa->var_info[ssa->ops[op_2].op2_use].type & (MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_STRING|MAY_BE_A… in zend_dfa_optimize_op_array()
1475 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1476 op_array->opcodes[op_2].op1_type = op_array->opcodes[op_2].op2_type; in zend_dfa_optimize_op_array()
1477 op_array->opcodes[op_2].op1.var = op_array->opcodes[op_2].op2.var; in zend_dfa_optimize_op_array()
1478 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1479 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1481 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1482 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1483 ssa->ops[op_2].op1_use = ssa->ops[op_2].op2_use; in zend_dfa_optimize_op_array()
1484 ssa->ops[op_2].op1_use_chain = ssa->ops[op_2].op2_use_chain; in zend_dfa_optimize_op_array()
1485 ssa->ops[op_2].op2_use = -1; in zend_dfa_optimize_op_array()
1486 ssa->ops[op_2].op2_use_chain = -1; in zend_dfa_optimize_op_array()
1564 int op_2 = ssa->vars[src_var].definition; in zend_dfa_optimize_op_array() local
1571 ssa->vars[v].definition = op_2; in zend_dfa_optimize_op_array()
1572 ssa->ops[op_2].result_def = v; in zend_dfa_optimize_op_array()
1583 op_array->opcodes[op_2].result_type = opline->op1_type; in zend_dfa_optimize_op_array()
1584 op_array->opcodes[op_2].result.var = opline->op1.var; in zend_dfa_optimize_op_array()
1589 if (op_array->opcodes[op_2].opcode == ZEND_SUB in zend_dfa_optimize_op_array()
1590 && op_array->opcodes[op_2].op1_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1591 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1592 && op_array->opcodes[op_2].op2_type == IS_CONST in zend_dfa_optimize_op_array()
1593 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1594 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == 1 in zend_dfa_optimize_op_array()
1595 && ssa->ops[op_2].op1_use >= 0 in zend_dfa_optimize_op_array()
1596 …&& !(ssa->var_info[ssa->ops[op_2].op1_use].type & (MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_STRING|MAY_BE_A… in zend_dfa_optimize_op_array()
1598 op_array->opcodes[op_2].opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1599 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1600 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1602 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1603 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1605 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1606 && op_array->opcodes[op_2].op1_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1607 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1608 && op_array->opcodes[op_2].op2_type == IS_CONST in zend_dfa_optimize_op_array()
1609 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1610 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == 1 in zend_dfa_optimize_op_array()
1611 && ssa->ops[op_2].op1_use >= 0 in zend_dfa_optimize_op_array()
1612 …&& !(ssa->var_info[ssa->ops[op_2].op1_use].type & (MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_STRING|MAY_BE_A… in zend_dfa_optimize_op_array()
1614 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1615 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1616 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1618 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1619 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1621 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1622 && op_array->opcodes[op_2].op2_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1623 && op_array->opcodes[op_2].op2.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1624 && op_array->opcodes[op_2].op1_type == IS_CONST in zend_dfa_optimize_op_array()
1625 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op1.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1626 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op1.constant)) == 1 in zend_dfa_optimize_op_array()
1627 && ssa->ops[op_2].op2_use >= 0 in zend_dfa_optimize_op_array()
1628 …&& !(ssa->var_info[ssa->ops[op_2].op2_use].type & (MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_STRING|MAY_BE_A… in zend_dfa_optimize_op_array()
1630 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1631 op_array->opcodes[op_2].op1_type = op_array->opcodes[op_2].op2_type; in zend_dfa_optimize_op_array()
1632 op_array->opcodes[op_2].op1.var = op_array->opcodes[op_2].op2.var; in zend_dfa_optimize_op_array()
1633 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1634 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1636 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1637 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1638 ssa->ops[op_2].op1_use = ssa->ops[op_2].op2_use; in zend_dfa_optimize_op_array()
1639 ssa->ops[op_2].op1_use_chain = ssa->ops[op_2].op2_use_chain; in zend_dfa_optimize_op_array()
1640 ssa->ops[op_2].op2_use = -1; in zend_dfa_optimize_op_array()
1641 ssa->ops[op_2].op2_use_chain = -1; in zend_dfa_optimize_op_array()