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

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 18 12:02:54 PST 2020


fhahn added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:5352
 
-  assert(MaxVectorSize <= 256 && "Did not expect to pack so many elements"
-                                 " into one vector!");
----------------
Could we just use `TTI->getRegisterBitWidth` as upper bound? That would allow us to keep the assert as a sanity check.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91518



More information about the llvm-commits mailing list