[llvm] [RISCV][GISel] Support nxv16p0 for RV32. (PR #101573)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 08:07:35 PDT 2024


================
@@ -74,7 +74,9 @@ static LegalityPredicate typeIsLegalPtrVec(unsigned TypeIdx,
   LegalityPredicate P = [=, &ST](const LegalityQuery &Query) {
     return ST.hasVInstructions() &&
            (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 1 ||
-            ST.getELen() == 64);
+            ST.getELen() == 64) &&
+           (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 16 ||
----------------
topperc wrote:

We only support a 16 element pointer vector when the element size is 32. If the pointer size is 64, then nxv16p0 should not be legal.

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


More information about the llvm-commits mailing list