Lines Matching refs:def
63 static inline zend_bool is_bad_mod(const zend_ssa *ssa, int use, int def) { in is_bad_mod() argument
64 if (def < 0) { in is_bad_mod()
318 int def = var->definition; in try_remove_var_def() local
320 if (def >= 0) { in try_remove_var_def()
321 zend_ssa_op *def_op = &ctx->ssa->ops[def]; in try_remove_var_def()
326 zend_op *def_opline = &ctx->op_array->opcodes[def]; in try_remove_var_def()
490 uint32_t def = live_range->start - 1; in dce_live_ranges() local
492 if ((op_array->opcodes[def].result_type == IS_UNUSED) && in dce_live_ranges()
493 (UNEXPECTED(op_array->opcodes[def].opcode == ZEND_EXT_STMT) || in dce_live_ranges()
494 UNEXPECTED(op_array->opcodes[def].opcode == ZEND_EXT_FCALL_END) || in dce_live_ranges()
495 UNEXPECTED(op_array->opcodes[def].opcode == ZEND_END_SILENCE))) { in dce_live_ranges()
496 def--; in dce_live_ranges()
499 if (op_array->opcodes[def].result_type == IS_UNUSED) { in dce_live_ranges()
500 if (op_array->opcodes[def].opcode == ZEND_DO_FCALL) { in dce_live_ranges()
503 def--; in dce_live_ranges()
504 if ((op_array->opcodes[def].result_type & (IS_TMP_VAR|IS_VAR)) in dce_live_ranges()
505 && op_array->opcodes[def].result.var == var) { in dce_live_ranges()
506 ZEND_ASSERT(op_array->opcodes[def].opcode == ZEND_NEW); in dce_live_ranges()
509 } while (def > 0); in dce_live_ranges()
510 } else if (op_array->opcodes[def].opcode == ZEND_OP_DATA) { in dce_live_ranges()
511 def--; in dce_live_ranges()
516 ZEND_ASSERT(op_array->opcodes[def].result_type & (IS_TMP_VAR|IS_VAR)); in dce_live_ranges()
517 ZEND_ASSERT(op_array->opcodes[def].result.var == var); in dce_live_ranges()
518 ZEND_ASSERT(ssa->ops[def].result_def >= 0); in dce_live_ranges()
520 if (!(op_array->opcodes[def].result_type & (IS_TMP_VAR|IS_VAR)) in dce_live_ranges()
521 || op_array->opcodes[def].result.var != var in dce_live_ranges()
522 || ssa->ops[def].result_def < 0) { in dce_live_ranges()
531 var = ssa->ops[def].result_def; in dce_live_ranges()