Home | History | Annotate | Download | only in nir

Lines Matching refs:block

31  * It only moves instructions within a single basic block; cross-block
78 move_comparison_source(nir_src *src, nir_block *block, nir_instr *before)
85 if (src_instr->block == block &&
94 exec_list_push_tail(&block->instr_list, &src_instr->node);
108 if (move_comparison_source(src, instr->block, instr))
115 move_comparisons(nir_block *block)
121 * If the instruction's source is a comparison from the same block,
123 * the block as well. However, as we walk backwards, we'll find the
128 * end of the block, if one exists. It's effectively a use at the
129 * bottom of the block.
131 nir_if *iff = nir_block_get_following_if(block);
133 progress |= move_comparison_source(&iff->condition, block, NULL);
136 nir_foreach_instr_reverse(instr, block) {
137 /* The sources of phi instructions happen after the predecessor block
138 * but before this block. (Yes, that's between blocks). This means
141 * the end of the block, doing so correctly would make the pass
155 block, instr);
174 nir_foreach_block(block, func->impl) {
175 if (move_comparisons(block)) {