[PATCH] D97378: [VPlan] Support to vectorize inner loops with VPlan native path enabled

Mauri Mustonen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 24 04:21:43 PST 2021


Kazhuu created this revision.
Herald added subscribers: tschuett, psnobl, rogfer01, bollu, hiraditya.
Kazhuu requested review of this revision.
Herald added subscribers: llvm-commits, vkmr.
Herald added a project: LLVM.

When no explicit loop is marked to be vectorized and VPlan native path is
enabled. The innermost loop will be vectorized using the inner loop vectorizer.
Previously this setup caused errors like this to happen:
https://bugs.llvm.org/show_bug.cgi?id=42592.

This patch fixes that and add a test case to test inner loop vectorization
happens when VPlan native path is enabled.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97378

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/lib/Transforms/Vectorize/VPlan.cpp
  llvm/test/Transforms/LoopVectorize/vplan-vectorize-inner-loop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97378.326046.patch
Type: text/x-patch
Size: 7477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210224/4187c8a7/attachment.bin>


More information about the llvm-commits mailing list