Lines Matching refs:old_target
455 remove_unused_block(struct ir3_block *old_target) in remove_unused_block() argument
457 list_delinit(&old_target->node); in remove_unused_block()
460 for (unsigned i = 0; i < ARRAY_SIZE(old_target->successors); i++) { in remove_unused_block()
461 if (old_target->successors[i]) { in remove_unused_block()
462 struct ir3_block *succ = old_target->successors[i]; in remove_unused_block()
463 _mesa_set_remove_key(succ->predecessors, old_target); in remove_unused_block()
471 struct ir3_block *old_target = instr->cat0.target; in retarget_jump() local
475 if (cur_block->successors[0] == old_target) { in retarget_jump()
478 debug_assert(cur_block->successors[1] == old_target); in retarget_jump()
486 debug_assert(_mesa_set_search(old_target->predecessors, cur_block)); in retarget_jump()
487 _mesa_set_remove_key(old_target->predecessors, cur_block); in retarget_jump()
489 if (old_target->predecessors->entries == 0) in retarget_jump()
490 remove_unused_block(old_target); in retarget_jump()