[llvm] [RISC-V][GISEL] Select G_BITCAST for scalable vectors (PR #101486)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 07:10:45 PDT 2024
topperc wrote:
> According to [RISCVDAGToADAGISel::Select](https://github.com/llvm/llvm-project/blob/130c135689ec12ab78c53645808524a8d28f7cae/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp#L2170), we should drop bitcasts between vectors if both are fixed or both are scalable.
We should emit a COPY for GISel. Otherwise we have to change registers on other instructions to emit nothing.
https://github.com/llvm/llvm-project/pull/101486
More information about the llvm-commits
mailing list