Lines Matching defs:loop
110 dce_block(nir_block *block, BITSET_WORD *defs_live, struct loop_state *loop)
120 src->pred != loop->preheader;
127 /* If we're not in a loop, remove it now if it's dead. If we are in a
128 * loop, leave instructions to be removed later if they're still dead.
130 if (loop->preheader) {
139 * we don't have to check whether the current block is a loop header before
142 loop->header_phis_changed = phis_changed;
167 nir_loop *loop = nir_cf_node_as_loop(cf_node);
173 /* Fast path if the loop has no continues: we can remove instructions
176 struct set *predecessors = nir_loop_first_block(loop)->predecessors;
179 progress |= dce_cf_list(&loop->body, defs_live, parent_loop);
188 dce_cf_list(&loop->body, defs_live, &inner_state);
225 struct loop_state loop;
226 loop.preheader = NULL;
227 bool progress = dce_cf_list(&impl->body, defs_live, &loop);