- worklist_push(worklist, following_if->condition.ssa->parent_instr);
- }
-
- return true;
-}
-
-static bool
-delete_block_cb(nir_block *block, void *_state)
-{
- bool *progress = (bool *) _state;
-
- nir_foreach_instr_safe(block, instr) {
- if (!instr->pass_flags) {
- nir_instr_remove(instr);
- *progress = true;
- }