Lines Matching refs:op_2
1348 int op_2 = ssa->vars[src_var].definition; in zend_dfa_optimize_op_array() local
1355 ssa->vars[v].definition = op_2; in zend_dfa_optimize_op_array()
1356 ssa->ops[op_2].result_def = v; in zend_dfa_optimize_op_array()
1369 op_array->opcodes[op_2].result_type = opline->result_type; in zend_dfa_optimize_op_array()
1370 op_array->opcodes[op_2].result.var = opline->result.var; in zend_dfa_optimize_op_array()
1375 if (op_array->opcodes[op_2].opcode == ZEND_SUB in zend_dfa_optimize_op_array()
1376 && op_array->opcodes[op_2].op1_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1377 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1378 && op_array->opcodes[op_2].op2_type == IS_CONST in zend_dfa_optimize_op_array()
1379 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1380 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == 1 in zend_dfa_optimize_op_array()
1381 && ssa->ops[op_2].op1_use >= 0 in zend_dfa_optimize_op_array()
1382 …&& !(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()
1384 op_array->opcodes[op_2].opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1385 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1386 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1388 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1389 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1391 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1392 && op_array->opcodes[op_2].op1_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1393 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1394 && op_array->opcodes[op_2].op2_type == IS_CONST in zend_dfa_optimize_op_array()
1395 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1396 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == 1 in zend_dfa_optimize_op_array()
1397 && ssa->ops[op_2].op1_use >= 0 in zend_dfa_optimize_op_array()
1398 …&& !(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()
1400 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1401 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1402 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1404 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1405 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1407 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1408 && op_array->opcodes[op_2].op2_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1409 && op_array->opcodes[op_2].op2.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1410 && op_array->opcodes[op_2].op1_type == IS_CONST in zend_dfa_optimize_op_array()
1411 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op1.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1412 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op1.constant)) == 1 in zend_dfa_optimize_op_array()
1413 && ssa->ops[op_2].op2_use >= 0 in zend_dfa_optimize_op_array()
1414 …&& !(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()
1416 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1417 op_array->opcodes[op_2].op1_type = op_array->opcodes[op_2].op2_type; in zend_dfa_optimize_op_array()
1418 op_array->opcodes[op_2].op1.var = op_array->opcodes[op_2].op2.var; in zend_dfa_optimize_op_array()
1419 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1420 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1422 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1423 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1424 ssa->ops[op_2].op1_use = ssa->ops[op_2].op2_use; in zend_dfa_optimize_op_array()
1425 ssa->ops[op_2].op1_use_chain = ssa->ops[op_2].op2_use_chain; in zend_dfa_optimize_op_array()
1426 ssa->ops[op_2].op2_use = -1; in zend_dfa_optimize_op_array()
1427 ssa->ops[op_2].op2_use_chain = -1; in zend_dfa_optimize_op_array()
1504 int op_2 = ssa->vars[src_var].definition; in zend_dfa_optimize_op_array() local
1511 ssa->vars[v].definition = op_2; in zend_dfa_optimize_op_array()
1512 ssa->ops[op_2].result_def = v; in zend_dfa_optimize_op_array()
1523 op_array->opcodes[op_2].result_type = opline->op1_type; in zend_dfa_optimize_op_array()
1524 op_array->opcodes[op_2].result.var = opline->op1.var; in zend_dfa_optimize_op_array()
1529 if (op_array->opcodes[op_2].opcode == ZEND_SUB in zend_dfa_optimize_op_array()
1530 && op_array->opcodes[op_2].op1_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1531 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1532 && op_array->opcodes[op_2].op2_type == IS_CONST in zend_dfa_optimize_op_array()
1533 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1534 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == 1 in zend_dfa_optimize_op_array()
1535 && ssa->ops[op_2].op1_use >= 0 in zend_dfa_optimize_op_array()
1536 …&& !(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()
1538 op_array->opcodes[op_2].opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1539 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1540 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1542 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1543 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1545 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1546 && op_array->opcodes[op_2].op1_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1547 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1548 && op_array->opcodes[op_2].op2_type == IS_CONST in zend_dfa_optimize_op_array()
1549 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1550 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op2.constant)) == 1 in zend_dfa_optimize_op_array()
1551 && ssa->ops[op_2].op1_use >= 0 in zend_dfa_optimize_op_array()
1552 …&& !(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()
1554 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1555 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1556 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1558 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1559 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1561 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1562 && op_array->opcodes[op_2].op2_type == op_array->opcodes[op_2].result_type in zend_dfa_optimize_op_array()
1563 && op_array->opcodes[op_2].op2.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array()
1564 && op_array->opcodes[op_2].op1_type == IS_CONST in zend_dfa_optimize_op_array()
1565 && Z_TYPE_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op1.constant)) == IS_LONG in zend_dfa_optimize_op_array()
1566 && Z_LVAL_P(CT_CONSTANT_EX(op_array, op_array->opcodes[op_2].op1.constant)) == 1 in zend_dfa_optimize_op_array()
1567 && ssa->ops[op_2].op2_use >= 0 in zend_dfa_optimize_op_array()
1568 …&& !(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()
1570 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1571 op_array->opcodes[op_2].op1_type = op_array->opcodes[op_2].op2_type; in zend_dfa_optimize_op_array()
1572 op_array->opcodes[op_2].op1.var = op_array->opcodes[op_2].op2.var; in zend_dfa_optimize_op_array()
1573 SET_UNUSED(op_array->opcodes[op_2].op2); in zend_dfa_optimize_op_array()
1574 SET_UNUSED(op_array->opcodes[op_2].result); in zend_dfa_optimize_op_array()
1576 ssa->ops[op_2].result_def = -1; in zend_dfa_optimize_op_array()
1577 ssa->ops[op_2].op1_def = v; in zend_dfa_optimize_op_array()
1578 ssa->ops[op_2].op1_use = ssa->ops[op_2].op2_use; in zend_dfa_optimize_op_array()
1579 ssa->ops[op_2].op1_use_chain = ssa->ops[op_2].op2_use_chain; in zend_dfa_optimize_op_array()
1580 ssa->ops[op_2].op2_use = -1; in zend_dfa_optimize_op_array()
1581 ssa->ops[op_2].op2_use_chain = -1; in zend_dfa_optimize_op_array()