/* The only uses of this definition must be phi's in the
* successor or in the current block
*/
- nir_foreach_use(&dest->ssa, use) {
+ nir_foreach_use(use, &dest->ssa) {
nir_instr *dest_instr = use->parent_instr;
if (dest_instr->block == block)
continue;
{
bool progress = false;
- nir_foreach_function(shader, function) {
+ nir_foreach_function(function, shader) {
if (function->impl)
progress |= lower_if_else_impl(function->impl);
}