[PATCH] D155845: [VPlan] Fix in-loop reduction chains using VPlan def-use chains (NFCI)

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 07:41: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.

Update adjustRecipesForReductions to directly use the VPlan def-use
chains for in-loop reductions to collect the reduction operations that
need adjusting.

This allows the removal of

- ReductionChainMap
- recording of recipes for instruction in the reduction chain
- removes late uses of getVPValue
- removes to need for removeVPValueFor.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155845

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155845.542518.patch
Type: text/x-patch
Size: 10612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230720/ad5bcc70/attachment.bin>


More information about the llvm-commits mailing list