Searched refs:last_instr (Results 1 – 13 of 13) sorted by relevance
82 nir_instr *last_instr = NULL; in nir_is_trivial_loop_if() local85 last_instr = nir_block_last_instr(break_block); in nir_is_trivial_loop_if()86 assert(last_instr && last_instr->type == nir_instr_type_jump && in nir_is_trivial_loop_if()87 nir_instr_as_jump(last_instr)->type == nir_jump_break); in nir_is_trivial_loop_if()90 if (contains_other_jump(&nif->cf_node, last_instr)) in nir_is_trivial_loop_if()
60 nir_instr *last_instr = nir_block_last_instr(block); in lower_trivial_continues_block() local61 if (!last_instr || !instr_is_continue(last_instr)) in lower_trivial_continues_block()68 nir_instr_remove(last_instr); in lower_trivial_continues_block()
70 nir_instr *last_instr = nir_block_ends_in_jump(block) ? in nir_opt_move_block() local99 nir_instr *first_user = instr == if_cond_instr ? NULL : last_instr; in nir_opt_move_block()143 last_instr = instr; in nir_opt_move_block()
184 nir_instr *last_instr = nir_block_last_instr(block); in lower_returns_in_block() local185 if (last_instr == NULL) in lower_returns_in_block()188 if (last_instr->type != nir_instr_type_jump) in lower_returns_in_block()191 nir_jump_instr *jump = nir_instr_as_jump(last_instr); in lower_returns_in_block()
336 nir_instr *last_instr = nir_block_last_instr(block); in get_parallel_copy_at_end_of_block() local337 if (last_instr == NULL) in get_parallel_copy_at_end_of_block()343 if (last_instr->type == nir_instr_type_jump) in get_parallel_copy_at_end_of_block()344 last_instr = nir_instr_prev(last_instr); in get_parallel_copy_at_end_of_block()346 if (last_instr && last_instr->type == nir_instr_type_parallel_copy) in get_parallel_copy_at_end_of_block()347 return nir_instr_as_parallel_copy(last_instr); in get_parallel_copy_at_end_of_block()
302 nir_instr *last_instr = nir_block_last_instr(last); in nir_opt_collapse_if() local303 if (last_instr && last_instr->type != nir_instr_type_phi) in nir_opt_collapse_if()
198 nir_instr *last_instr = nir_block_last_instr(block); in opt_peel_loop_initial_if() local199 if (last_instr && last_instr->type == nir_instr_type_jump) in opt_peel_loop_initial_if()259 nir_instr *last_instr = nir_block_last_instr(continue_block); in opt_peel_loop_initial_if() local260 if (last_instr && last_instr->type == nir_instr_type_jump) in opt_peel_loop_initial_if()261 nir_instr_remove(last_instr); in opt_peel_loop_initial_if()
64 nir_instr *last_instr; member778 if (block_info->last_instr) { in gcm_place_instr()779 exec_node_insert_node_before(&block_info->last_instr->node, in gcm_place_instr()791 block_info->last_instr = instr; in gcm_place_instr()
753 nir_instr *last_instr = nir_block_last_instr(block); in relink_jump_halt_cf_node() local754 if (last_instr == NULL || last_instr->type != nir_instr_type_jump) in relink_jump_halt_cf_node()757 nir_jump_instr *jump = nir_instr_as_jump(last_instr); in relink_jump_halt_cf_node()
120 nir_instr *last_instr = nir_block_last_instr(last_block); in opt_constant_if() local121 if (last_instr->type == nir_instr_type_jump) in opt_constant_if()
71 nir_instr *last_instr = nir_block_last_instr(nir_loop_last_block(loop)); in loop_prepare_for_unroll() local72 if (last_instr && last_instr->type == nir_instr_type_jump) { in loop_prepare_for_unroll()73 nir_instr_remove(last_instr); in loop_prepare_for_unroll()
3949 nir_instr *last_instr = nir_block_last_instr(block); in nir_after_block_before_jump() local3950 if (last_instr && last_instr->type == nir_instr_type_jump) { in nir_after_block_before_jump()3951 return nir_before_instr(last_instr); in nir_after_block_before_jump()
385 const Instruction* last_instr = in OptimizeMerge() local387 if (last_instr->IsCall()) return; in OptimizeMerge()388 if (last_instr->TempCount() != 0) return; in OptimizeMerge()389 if (last_instr->OutputCount() != 0) return; in OptimizeMerge()390 for (size_t i = 0; i < last_instr->InputCount(); ++i) { in OptimizeMerge()391 const InstructionOperand* op = last_instr->InputAt(i); in OptimizeMerge()