[PATCH] D121297: [AArch64][SVE] Change the asserts in LowerToPredicatedOp to check for legal types

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 04:46:32 PST 2022


paulwalker-arm accepted this revision.
paulwalker-arm added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:19981
   if (VT.isFixedLengthVector()) {
-    assert(VT.getFixedSizeInBits() <= Subtarget->getMinSVEVectorSizeInBits() &&
-           "Cannot use SVE to lower fixed length predicated op!");
+    assert(DAG.getTargetLoweringInfo().isTypeLegal(VT) &&
+           "Expected only legal fixed-width types");
----------------
This is a target lowering function so you should be able to call `isTypeLegal()` directly.


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

https://reviews.llvm.org/D121297



More information about the llvm-commits mailing list