[PATCH] D91518: [LV][NFC-ish] Allow vector widths over 256 elements

Simon Moll via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 00:41:06 PST 2020


simoll created this revision.
simoll added reviewers: fhahn, k-ishizaka, kaz7.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
simoll requested review of this revision.

The assertion that vector widths are <= 256 elements was hard wired in the LV code. Remove that  - this is an NFC for non-asserting builds.
Eg, VE allows for vectors up to 512 elements.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91518

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp


Index: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
===================================================================
--- llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -5349,8 +5349,6 @@
   LLVM_DEBUG(dbgs() << "LV: The Widest register safe to use is: "
                     << WidestRegister << " bits.\n");
 
-  assert(MaxVectorSize <= 256 && "Did not expect to pack so many elements"
-                                 " into one vector!");
   if (MaxVectorSize == 0) {
     LLVM_DEBUG(dbgs() << "LV: The target has no vector registers.\n");
     MaxVectorSize = 1;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91518.305422.patch
Type: text/x-patch
Size: 630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201116/8ed8f44d/attachment.bin>


More information about the llvm-commits mailing list