Lines Matching refs:def

60 static inline zend_bool is_bad_mod(const zend_ssa *ssa, int use, int def) {  in is_bad_mod()  argument
61 if (def < 0) { in is_bad_mod()
286 int def = var->definition; in try_remove_var_def() local
288 if (def >= 0) { in try_remove_var_def()
289 zend_ssa_op *def_op = &ctx->ssa->ops[def]; in try_remove_var_def()
294 zend_op *def_opline = &ctx->op_array->opcodes[def]; in try_remove_var_def()
564 uint32_t def = live_range->start - 1; in dce_live_ranges() local
566 if ((op_array->opcodes[def].result_type == IS_UNUSED) && in dce_live_ranges()
567 (UNEXPECTED(op_array->opcodes[def].opcode == ZEND_EXT_STMT) || in dce_live_ranges()
568 UNEXPECTED(op_array->opcodes[def].opcode == ZEND_EXT_FCALL_END) || in dce_live_ranges()
569 UNEXPECTED(op_array->opcodes[def].opcode == ZEND_END_SILENCE))) { in dce_live_ranges()
570 def--; in dce_live_ranges()
573 if (op_array->opcodes[def].result_type == IS_UNUSED) { in dce_live_ranges()
574 if (op_array->opcodes[def].opcode == ZEND_DO_FCALL) { in dce_live_ranges()
577 def--; in dce_live_ranges()
578 if ((op_array->opcodes[def].result_type & (IS_TMP_VAR|IS_VAR)) in dce_live_ranges()
579 && op_array->opcodes[def].result.var == var) { in dce_live_ranges()
580 ZEND_ASSERT(op_array->opcodes[def].opcode == ZEND_NEW); in dce_live_ranges()
583 } while (def > 0); in dce_live_ranges()
584 } else if (op_array->opcodes[def].opcode == ZEND_OP_DATA) { in dce_live_ranges()
585 def--; in dce_live_ranges()
590 ZEND_ASSERT(op_array->opcodes[def].result_type & (IS_TMP_VAR|IS_VAR)); in dce_live_ranges()
591 ZEND_ASSERT(op_array->opcodes[def].result.var == var); in dce_live_ranges()
592 ZEND_ASSERT(ssa->ops[def].result_def >= 0); in dce_live_ranges()
594 if (!(op_array->opcodes[def].result_type & (IS_TMP_VAR|IS_VAR)) in dce_live_ranges()
595 || op_array->opcodes[def].result.var != var in dce_live_ranges()
596 || ssa->ops[def].result_def < 0) { in dce_live_ranges()
605 var = ssa->ops[def].result_def; in dce_live_ranges()