nir: Add an optimization pass to remove trivial continues