[PATCH] D157714: [VPlan] Move addition of canonical IV increments & branches later. (WIP)

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 11 07:04:07 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 breaks up quite complicated addCanonicalIVRecipes into 2
distinct parts

1. Initially, only create an incomplete VPCanonicalIVPHI recipe
2. Introduce the canonical IV increments and branches later in separate transform.

This gradual lowering makes initial construction simpler and allows
introducing VF & UF specific increments late when they are fixed. It
also enables introducing VPActiveLaneMaskPHIRecipe directly when needed
(tail folding).

It should also allow introducing additional ingredients like
explicit-vector length handling gradually.

Depends on D157713 <https://reviews.llvm.org/D157713>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157714

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/lib/Transforms/Vectorize/VPlan.h
  llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157714.549379.patch
Type: text/x-patch
Size: 15868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230811/1533e479/attachment.bin>


More information about the llvm-commits mailing list