[llvm] [RISCV] Handle zeroinitializer of vector tuple Type (PR #113995)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 15:29:31 PST 2024


================
@@ -57,6 +57,28 @@ void RISCVDAGToDAGISel::PreprocessISelDAG() {
 
     SDValue Result;
     switch (N->getOpcode()) {
+    case ISD::BITCAST: {
----------------
topperc wrote:

> But I think we don't model the hierarchy like VRN2M2 <-> VRM4 right?

`copyPhysReg` might work if it just looks up the start and number of registers for each of the register classes. But there's no equivalence when NF is not a power of 2.

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


More information about the llvm-commits mailing list