[PATCH] D111633: [SelectionDAG] Fix getVectorSubVecPointer for scalable subvectors.

Caroline via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 12 05:18:56 PDT 2021


CarolineConcatto added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:7876
+  } else
+    Index =
+        DAG.getNode(ISD::MUL, dl, IdxVT, Index,
----------------
Can you do something like this:

```

Index = DAG.getVScale(DL, IdxVT, APInt(IdxVT.getSizeInBits(), Index.getConstantOperandVal(0)));
```
?
Insead of multiply the index by a scalable vector of size 1?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111633/new/

https://reviews.llvm.org/D111633



More information about the llvm-commits mailing list