[AArch64] Flush registers from register cache if they won't be used again.


This requires PR #1705 and #1723 prior to merging.