[PATCH] D76992: [VPlan] Add & use VPValue operands for VPWidenRecipe (NFC).

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 28 11:49:19 PDT 2020


fhahn created this revision.
fhahn added reviewers: rengolin, Ayal, gilr.
Herald added subscribers: psnobl, rogfer01, rkruppe, tschuett, bollu, hiraditya.
Herald added a project: LLVM.
fhahn added parent revisions: D74960: [VPlan] Provide required helpers through VPTransformState (NFC)., D76988: [VPlan] Use on VPWidenRecipe per original IR instruction. (NFC)..

This patch adds VPValue version of the instruction operands to
VPWidenRecipe and uses them during code-generation. It moves the code
generation from InnerLoopVectorizer::widenInstruction to
VPWidenRecipe::execute, so we can conveniently access the underlying
values of VPValues.

Similar to D76373 <https://reviews.llvm.org/D76373> this reduces ingredient def-use usage by ILV as
a step towards full VPlan-based def-use relations.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76992

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76992.253362.patch
Type: text/x-patch
Size: 20912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200328/563aff44/attachment-0001.bin>


More information about the llvm-commits mailing list