nir: Select phi nodes using prev_block instead of continue_block