Lines Matching refs:op_2
1381 int op_2 = ssa->vars[src_var].definition; in zend_dfa_optimize_op_array() local
1391 ssa->vars[v].definition = op_2; in zend_dfa_optimize_op_array()
1392 ssa->ops[op_2].result_def = v; in zend_dfa_optimize_op_array()
1405 op_array->opcodes[op_2].result_type = opline->result_type; in zend_dfa_optimize_op_array()
1406 op_array->opcodes[op_2].result.var = opline->result.var; in zend_dfa_optimize_op_array()
1411 if (op_array->opcodes[op_2].opcode == ZEND_SUB in zend_dfa_optimize_op_array()
1412 && op_array->opcodes[op_2].op1_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1413 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1414 && op_array->opcodes[op_2].op2_type == IS_CONST in zend_dfa_optimize_op_array()
1415 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1416 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == 1 in zend_dfa_optimize_op_array()
1417 && ssa->ops[op_2].op1_use >= 0 in zend_dfa_optimize_op_array()
1418 …&& !(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()
1420 op_array->opcodes[op_2].opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1421 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1422 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1424 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1425 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1427 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1428 && op_array->opcodes[op_2].op1_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1429 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1430 && op_array->opcodes[op_2].op2_type == IS_CONST in zend_dfa_optimize_op_array()
1431 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1432 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == 1 in zend_dfa_optimize_op_array()
1433 && ssa->ops[op_2].op1_use >= 0 in zend_dfa_optimize_op_array()
1434 …&& !(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()
1436 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1437 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1438 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1440 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1441 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1443 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1444 && op_array->opcodes[op_2].op2_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1445 && op_array->opcodes[op_2].op2.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1446 && op_array->opcodes[op_2].op1_type == IS_CONST in zend_dfa_optimize_op_array()
1447 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op1.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1448 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op1.constant)) == 1 in zend_dfa_optimize_op_array()
1449 && ssa->ops[op_2].op2_use >= 0 in zend_dfa_optimize_op_array()
1450 …&& !(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()
1452 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1453 op_array->opcodes[op_2].op1_type = op_array->opcodes[op_2].op2_type; in zend_dfa_optimize_op_array()
1454 op_array->opcodes[op_2].op1.var = op_array->opcodes[op_2].op2.var; in zend_dfa_optimize_op_array()
1455 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1456 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1458 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1459 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1460 ssa->ops[op_2].op1_use = ssa->ops[op_2].op2_use; in zend_dfa_optimize_op_array()
1461 ssa->ops[op_2].op1_use_chain = ssa->ops[op_2].op2_use_chain; in zend_dfa_optimize_op_array()
1462 ssa->ops[op_2].op2_use = -1; in zend_dfa_optimize_op_array()
1463 ssa->ops[op_2].op2_use_chain = -1; in zend_dfa_optimize_op_array()
1540 int op_2 = ssa->vars[src_var].definition; in zend_dfa_optimize_op_array() local
1547 ssa->vars[v].definition = op_2; in zend_dfa_optimize_op_array()
1548 ssa->ops[op_2].result_def = v; in zend_dfa_optimize_op_array()
1559 op_array->opcodes[op_2].result_type = opline->op1_type; in zend_dfa_optimize_op_array()
1560 op_array->opcodes[op_2].result.var = opline->op1.var; in zend_dfa_optimize_op_array()
1565 if (op_array->opcodes[op_2].opcode == ZEND_SUB in zend_dfa_optimize_op_array()
1566 && op_array->opcodes[op_2].op1_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1567 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1568 && op_array->opcodes[op_2].op2_type == IS_CONST in zend_dfa_optimize_op_array()
1569 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1570 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == 1 in zend_dfa_optimize_op_array()
1571 && ssa->ops[op_2].op1_use >= 0 in zend_dfa_optimize_op_array()
1572 …&& !(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()
1574 op_array->opcodes[op_2].opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1575 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1576 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1578 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1579 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1581 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1582 && op_array->opcodes[op_2].op1_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1583 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1584 && op_array->opcodes[op_2].op2_type == IS_CONST in zend_dfa_optimize_op_array()
1585 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1586 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == 1 in zend_dfa_optimize_op_array()
1587 && ssa->ops[op_2].op1_use >= 0 in zend_dfa_optimize_op_array()
1588 …&& !(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()
1590 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1591 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1592 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1594 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1595 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1597 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1598 && op_array->opcodes[op_2].op2_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1599 && op_array->opcodes[op_2].op2.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1600 && op_array->opcodes[op_2].op1_type == IS_CONST in zend_dfa_optimize_op_array()
1601 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op1.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1602 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op1.constant)) == 1 in zend_dfa_optimize_op_array()
1603 && ssa->ops[op_2].op2_use >= 0 in zend_dfa_optimize_op_array()
1604 …&& !(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()
1606 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1607 op_array->opcodes[op_2].op1_type = op_array->opcodes[op_2].op2_type; in zend_dfa_optimize_op_array()
1608 op_array->opcodes[op_2].op1.var = op_array->opcodes[op_2].op2.var; in zend_dfa_optimize_op_array()
1609 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1610 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1612 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1613 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1614 ssa->ops[op_2].op1_use = ssa->ops[op_2].op2_use; in zend_dfa_optimize_op_array()
1615 ssa->ops[op_2].op1_use_chain = ssa->ops[op_2].op2_use_chain; in zend_dfa_optimize_op_array()
1616 ssa->ops[op_2].op2_use = -1; in zend_dfa_optimize_op_array()
1617 ssa->ops[op_2].op2_use_chain = -1; in zend_dfa_optimize_op_array()