Lines Matching refs:bcsel
305 nir_alu_instr *const bcsel = nir_instr_as_alu(instr); in is_trivial_bcsel() local
306 if (bcsel->op != nir_op_bcsel && in is_trivial_bcsel()
307 bcsel->op != nir_op_b32csel && in is_trivial_bcsel()
308 bcsel->op != nir_op_fcsel) in is_trivial_bcsel()
312 if (!nir_alu_src_is_trivial_ssa(bcsel, i) || in is_trivial_bcsel()
313 bcsel->src[i].src.ssa->parent_instr->block != instr->block) in is_trivial_bcsel()
316 if (bcsel->src[i].src.ssa->parent_instr->type != nir_instr_type_phi) { in is_trivial_bcsel()
324 nir_foreach_phi_src(src, nir_instr_as_phi(bcsel->src[0].src.ssa->parent_instr)) { in is_trivial_bcsel()
655 nir_alu_instr *const bcsel = nir_instr_as_alu(instr); in opt_simplify_bcsel_of_phi() local
657 nir_instr_as_phi(bcsel->src[0].src.ssa->parent_instr); in opt_simplify_bcsel_of_phi()
683 … nir_phi_get_src_from_block(nir_instr_as_phi(bcsel->src[entry_src].src.ssa->parent_instr), in opt_simplify_bcsel_of_phi()
687 … nir_phi_get_src_from_block(nir_instr_as_phi(bcsel->src[continue_src].src.ssa->parent_instr), in opt_simplify_bcsel_of_phi()
692 nir_dest_num_components(bcsel->dest.dest), in opt_simplify_bcsel_of_phi()
693 nir_dest_bit_size(bcsel->dest.dest), in opt_simplify_bcsel_of_phi()
702 nir_ssa_def_rewrite_uses(&bcsel->dest.dest.ssa, in opt_simplify_bcsel_of_phi()
708 nir_instr_remove_v(&bcsel->instr); in opt_simplify_bcsel_of_phi()
709 nir_instr_free(&bcsel->instr); in opt_simplify_bcsel_of_phi()