nir: Add optimization to use ROR/ROL instructions