https://github.com/sjoerdmeijer approved this pull request. The AArch64 changes look reasonable, looks like an improvement, so LGTM. Maybe wait a couple of days in case @topperc has comments about the RISC-V changes. https://github.com/llvm/llvm-project/pull/90720