state.mem_ctx = ralloc_parent(impl);
state.progress = false;
- nir_foreach_block(impl, nir_opt_peephole_select_block, &state);
+ nir_foreach_block_call(impl, nir_opt_peephole_select_block, &state);
if (state.progress)
nir_metadata_preserve(impl, nir_metadata_none);