https://github.com/efriedma-quic approved this pull request. LGTM If we want to optimize on AArch64 specifically, we could teach the assembler to rewrite `ldr x0, =smallconstant` to `ldr w0, =smallconstant`. But probably not the effort. https://github.com/llvm/llvm-project/pull/86832