Target-independent code only knows how to spill to the stack; instead, use AArch64ISD::REINTERPRET_CAST.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | ||
---|---|---|
3510–3512 | You may as well just remove the "Cannot cast between unpacked scalable vector types" assert from getSVESafeBitCast. The original intent of the assert was to catch cases where getSVESafeBitCast wasn't needed because a single REINTERPRET_CAST could do the job. The assert is clearly too generic but at the same time I deliberately didn't add isel patterns for the unpacked-unpacked-fp cases[1], so I don't see a real benefit to tightening up the assert. [1] I know this is not consistent with i1 handling. | |
llvm/test/CodeGen/AArch64/sve-bitcast.ll | ||
460 | Out of interest are the loads fundamental to these three tests? |
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | ||
---|---|---|
3510–3512 | Sure, will do. | |
llvm/test/CodeGen/AArch64/sve-bitcast.ll | ||
460 | When I was constructing the tests, I had to be careful to make sure we actually hit the codepath in question. In the simplest cases, the bitcast gets combined away. Maybe it's not necessary for the final form these tests ended up with, though; I'll check. |
clang-tidy: warning: invalid case style for function 'ReplaceBITCASTResults' [readability-identifier-naming]
not useful