Lines Matching refs:chosen
617 nir_schedule_node *chosen = NULL; in nir_schedule_choose_instruction_fallback() local
626 if (!chosen || chosen->max_delay > n->max_delay) in nir_schedule_choose_instruction_fallback()
627 chosen = n; in nir_schedule_choose_instruction_fallback()
629 if (chosen) { in nir_schedule_choose_instruction_fallback()
632 nir_print_instr(chosen->instr, stderr); in nir_schedule_choose_instruction_fallback()
636 return chosen; in nir_schedule_choose_instruction_fallback()
641 if (!chosen || chosen->max_delay > n->max_delay) in nir_schedule_choose_instruction_fallback()
642 chosen = n; in nir_schedule_choose_instruction_fallback()
646 nir_print_instr(chosen->instr, stderr); in nir_schedule_choose_instruction_fallback()
650 return chosen; in nir_schedule_choose_instruction_fallback()
663 nir_schedule_node *chosen = NULL; in nir_schedule_choose_instruction_csp() local
672 if (!chosen || chosen->max_delay < n->max_delay) in nir_schedule_choose_instruction_csp()
673 chosen = n; in nir_schedule_choose_instruction_csp()
675 if (chosen) { in nir_schedule_choose_instruction_csp()
678 nir_print_instr(chosen->instr, stderr); in nir_schedule_choose_instruction_csp()
682 return chosen; in nir_schedule_choose_instruction_csp()
687 if (!chosen || chosen->max_delay < n->max_delay) in nir_schedule_choose_instruction_csp()
688 chosen = n; in nir_schedule_choose_instruction_csp()
692 nir_print_instr(chosen->instr, stderr); in nir_schedule_choose_instruction_csp()
696 return chosen; in nir_schedule_choose_instruction_csp()
706 nir_schedule_node *chosen = NULL; in nir_schedule_choose_instruction_csr() local
715 if (regs_freed > 0 && (!chosen || chosen->max_delay < n->max_delay)) { in nir_schedule_choose_instruction_csr()
716 chosen = n; in nir_schedule_choose_instruction_csr()
719 if (chosen) { in nir_schedule_choose_instruction_csr()
722 nir_print_instr(chosen->instr, stderr); in nir_schedule_choose_instruction_csr()
726 return chosen; in nir_schedule_choose_instruction_csr()
733 if (regs_freed > 0 && (!chosen || chosen->max_delay < n->max_delay)) { in nir_schedule_choose_instruction_csr()
734 chosen = n; in nir_schedule_choose_instruction_csr()
737 if (chosen) { in nir_schedule_choose_instruction_csr()
740 nir_print_instr(chosen->instr, stderr); in nir_schedule_choose_instruction_csr()
744 return chosen; in nir_schedule_choose_instruction_csr()
750 (!chosen || chosen->max_delay < n->max_delay)) { in nir_schedule_choose_instruction_csr()
751 chosen = n; in nir_schedule_choose_instruction_csr()
754 if (chosen) { in nir_schedule_choose_instruction_csr()
757 nir_print_instr(chosen->instr, stderr); in nir_schedule_choose_instruction_csr()
761 return chosen; in nir_schedule_choose_instruction_csr()
775 if (!chosen || chosen->max_delay < n->max_delay) in nir_schedule_choose_instruction_csr()
776 chosen = n; in nir_schedule_choose_instruction_csr()
778 if (chosen) { in nir_schedule_choose_instruction_csr()
781 nir_print_instr(chosen->instr, stderr); in nir_schedule_choose_instruction_csr()
785 return chosen; in nir_schedule_choose_instruction_csr()
792 if (!chosen || chosen->max_delay < n->max_delay) in nir_schedule_choose_instruction_csr()
793 chosen = n; in nir_schedule_choose_instruction_csr()
795 if (chosen) { in nir_schedule_choose_instruction_csr()
798 nir_print_instr(chosen->instr, stderr); in nir_schedule_choose_instruction_csr()
801 return chosen; in nir_schedule_choose_instruction_csr()
806 if (!chosen || chosen->max_delay < n->max_delay) in nir_schedule_choose_instruction_csr()
807 chosen = n; in nir_schedule_choose_instruction_csr()
812 nir_print_instr(chosen->instr, stderr); in nir_schedule_choose_instruction_csr()
816 return chosen; in nir_schedule_choose_instruction_csr()
982 nir_schedule_node *chosen; in nir_schedule_instructions() local
984 chosen = nir_schedule_choose_instruction_fallback(scoreboard); in nir_schedule_instructions()
986 chosen = nir_schedule_choose_instruction_csp(scoreboard); in nir_schedule_instructions()
988 chosen = nir_schedule_choose_instruction_csr(scoreboard); in nir_schedule_instructions()
993 nir_schedule_mark_node_scheduled(scoreboard, chosen); in nir_schedule_instructions()
998 exec_node_remove(&chosen->instr->node); in nir_schedule_instructions()
999 exec_list_push_tail(&block->instr_list, &chosen->instr->node); in nir_schedule_instructions()