nir: lower_non_uniform_access: iterate over instructions safely
This pass moves instructions around, so do this safely otherwise we might skip instructions.
Signed-off-by: Lionel Landwerlin lionel.g.landwerlin@intel.com Fixes: 3bd54576 ("nir: Add a lowering pass for non-uniform resource access")