[llvm] [AArch64]: Replaced assertion with check (PR #173737)

Kevin Per via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 9 04:14:07 PST 2026


kper wrote:

hmm I see
When I revert the changes, try to disable the assertion and run the program I crash with:

```
D1 = COPY S0
unimplemented reg-to-reg copy
UNREACHABLE executed at /Users/kper/Documents/dev/oss/llvm-project/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp:5887!
```

So, it seems to me that the `CopyTo` in `FirstCopy` also requires some sort of sub register which I try to implement next:
Ctx: https://github.com/llvm/llvm-project/blob/781677eca0cdb668b1227dafe739efe512277650/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp#L4155

https://github.com/llvm/llvm-project/pull/173737


More information about the llvm-commits mailing list