Lines Matching refs:bcsel
304 nir_alu_instr *const bcsel = nir_instr_as_alu(instr); in is_trivial_bcsel() local
305 if (bcsel->op != nir_op_bcsel && in is_trivial_bcsel()
306 bcsel->op != nir_op_b32csel && in is_trivial_bcsel()
307 bcsel->op != nir_op_fcsel) in is_trivial_bcsel()
311 if (!nir_alu_src_is_trivial_ssa(bcsel, i) || in is_trivial_bcsel()
312 bcsel->src[i].src.ssa->parent_instr->block != instr->block) in is_trivial_bcsel()
315 if (bcsel->src[i].src.ssa->parent_instr->type != nir_instr_type_phi) { in is_trivial_bcsel()
323 nir_foreach_phi_src(src, nir_instr_as_phi(bcsel->src[0].src.ssa->parent_instr)) { in is_trivial_bcsel()
676 nir_alu_instr *const bcsel = nir_instr_as_alu(instr); in opt_simplify_bcsel_of_phi() local
678 nir_instr_as_phi(bcsel->src[0].src.ssa->parent_instr); in opt_simplify_bcsel_of_phi()
708 …nir_src_for_ssa(ssa_for_phi_from_block(nir_instr_as_phi(bcsel->src[entry_src].src.ssa->parent_inst… in opt_simplify_bcsel_of_phi()
715 …nir_src_for_ssa(ssa_for_phi_from_block(nir_instr_as_phi(bcsel->src[continue_src].src.ssa->parent_i… in opt_simplify_bcsel_of_phi()
721 nir_dest_num_components(bcsel->dest.dest), in opt_simplify_bcsel_of_phi()
722 nir_dest_bit_size(bcsel->dest.dest), in opt_simplify_bcsel_of_phi()
731 nir_ssa_def_rewrite_uses(&bcsel->dest.dest.ssa, in opt_simplify_bcsel_of_phi()
737 nir_instr_remove_v(&bcsel->instr); in opt_simplify_bcsel_of_phi()
738 ralloc_free(bcsel); in opt_simplify_bcsel_of_phi()