[AArch64] Hoist calculation of register rtx.