[PATCH] D81267: [LV] Enable the LoopVectorizer to create pointer inductions

Anna Welker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 08:52:39 PDT 2020


anwel created this revision.
anwel added reviewers: Ayal, fhahn, dmgreen, SjoerdMeijer, rengolin, mssimpso, danielcdh.
Herald added subscribers: llvm-commits, rkruppe, hiraditya.
Herald added a project: LLVM.

Currently, pointer inductions are scalarized by the LoopVectorizer. Individual getelementptrs are built to create an address from the induction variable and are then inserted into vectors to be used by vector loads and stores. This patch enables the LoopVectorizer to build a phi of pointer type and provide the vector loads and stores with vector type getelementptrs built from the pointer induction variable.


https://reviews.llvm.org/D81267

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/ARM/pointer_iv.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81267.268819.patch
Type: text/x-patch
Size: 46455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200605/5c9275cd/attachment.bin>


More information about the llvm-commits mailing list