nir: Add a bunch of b2[if] optimizations