[PATCH] D111300: [VPlan] Keep induction recipes in header.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 7 04:24:33 PDT 2021


fhahn created this revision.
fhahn added reviewers: Ayal, gilr.
Herald added subscribers: tschuett, psnobl, rogfer01, bollu, hiraditya.
fhahn requested review of this revision.
Herald added a subscriber: vkmr.
Herald added a project: LLVM.

This patch updates recipe creation to ensure all
VPWidenIntOrFpInductionRecipes are in the header block. At the moment,
new induction recipes can be created in different blocks when trying to
optimize casts and induction variables.

Having all induction recipes in the header makes it easier to
analyze/transform them in VPlan.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111300

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/pr46525-expander-insertpoint.ll
  llvm/test/Transforms/LoopVectorize/reduction-inloop-pred.ll
  llvm/test/Transforms/LoopVectorize/runtime-check-needed-but-empty.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111300.377800.patch
Type: text/x-patch
Size: 31725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211007/fe13e7c0/attachment.bin>


More information about the llvm-commits mailing list