nir_store_var(&b->nb, do_cont, nir_imm_int(&b->nb, NIR_TRUE), 1);
}
- b->nb.cursor = nir_after_cf_node(&loop->cf_node);
+ b->nb.cursor = nir_after_cf_list(&loop->body);
vtn_emit_cf_list(b, &vtn_loop->body);
+
+ b->nb.cursor = nir_after_cf_node(&loop->cf_node);
break;
}
*/
vtn_cfg_walk_blocks(b, &loop->body, block,
loop_break, loop_cont, NULL );
- vtn_cfg_walk_blocks(b, &loop->body, loop_cont, NULL, NULL, block);
+ vtn_cfg_walk_blocks(b, &loop->cont_body, loop_cont, NULL, NULL, block);
block = loop_break;
continue;