[PATCH] D75672: [ValueTypes] Add support for scalable EVTs

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 5 09:18:18 PST 2020


efriedma added a comment.

Please post patches with full context (-U10000)



================
Comment at: llvm/include/llvm/CodeGen/ValueTypes.h:265
     unsigned getVectorNumElements() const {
-      assert(isVector() && "Invalid vector type!");
+      assert((isVector() || isScalableVector()) && "Invalid vector type!");
       if (isSimple())
----------------
Not sure changing getVectorNumElements like this makes sense.


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

https://reviews.llvm.org/D75672





More information about the llvm-commits mailing list