nir: correctly track current loop in nir_opt_loop()
nir: correctly track current loop in nir_opt_loop()
We were not restoring an outer loop as the current loop after we had finished processing a nested loop.
Fixes: 9995f336 ("nir: add merge loop terminators optimisation")