nir: nir_lower_returns can't handle nested loops
The nir_lower_returns
pass gets rid of nir_jump_return
instructions, and if it's in a loop, replaces them with nir_jump_break
, which does not do the right thing inside nested loops where all the levels of loops need to be broken out of.