Lines Matching refs:def
618 /** Schedules the instruction associated with the given SSA def late
626 gcm_schedule_late_def(nir_ssa_def *def, void *void_state)
632 nir_foreach_use(use_src, def) {
641 * any that are usingg this SSA def, and using those blocks instead
648 if (phi_src->src.ssa == def)
656 nir_foreach_if_use(use_src, def) {
669 state->instr_infos[def->parent_instr->index].early_block;
675 def->parent_instr->block = NULL;
679 if (def->parent_instr->pass_flags & GCM_INSTR_SCHEDULE_EARLIER_ONLY &&
680 lca != def->parent_instr->block &&
681 nir_block_dominates(def->parent_instr->block, lca)) {
682 lca = def->parent_instr->block;
691 gcm_choose_block_for_instr(def->parent_instr, early_block, lca, state);
693 if (def->parent_instr->block != best_block)
696 def->parent_instr->block = best_block;
734 gcm_replace_def_with_undef(nir_ssa_def *def, void *void_state)
738 if (nir_ssa_def_is_unused(def))
743 def->num_components, def->bit_size);
745 nir_ssa_def_rewrite_uses(def, &undef->def);