[PATCH] D158333: [VPlan] Move initial skeleton construction to createInitialVPlan. (NFC)

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 19 07:23:22 PDT 2023


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

This patch moves creating the preheader and middle VPBBs as well as the
initial empty vector loop region to createInitialVPlan.

This consolidates code to create the initial VPlan skeleton and enables
adding other bits outside the main region during initial VPlan
construction. In particular, D150398 <https://reviews.llvm.org/D150398> will add the exit check & branch to
the middle block.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158333

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/lib/Transforms/Vectorize/VPlan.cpp
  llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
  llvm/test/Transforms/LoopVectorize/vplan-printing-outer-loop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158333.551749.patch
Type: text/x-patch
Size: 8520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230819/64a0176c/attachment.bin>


More information about the llvm-commits mailing list