[PATCH] D152258: [LV] Add mask support for vectorizing interleaved groups

mgabka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 26 07:45:57 PDT 2023


mgabka added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:2679
+    if (VF.isScalable()) {
+      assert(!MaskForGaps && "Interleaved groups with gaps are not supported.");
+      auto *BlockInMaskPart = State.get(BlockInMask, Part);
----------------
could you add an assert here:
 assert(InterleaveFactor == 2 &&
             "Unsupported deinterleave factor for scalable vectors");

there is one in line 2731m but this function is called before reaching that line.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152258



More information about the llvm-commits mailing list