[PATCH] D94426: [VPlan] Introduce VPExternalDef specialization for VPValue

Satish K Guggilla via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 09:14:21 PST 2021


sguggill created this revision.
sguggill added reviewers: fhahn, hsaito, Ayal.
Herald added subscribers: psnobl, rogfer01, bollu, hiraditya.
sguggill requested review of this revision.
Herald added subscribers: llvm-commits, vkmr.
Herald added a project: LLVM.

The changes here introduce VPExternalDef specialization for VPValues. When constructing VPlan for a candidate loop in the native path, we now create a VPExternalDef when the corresponding underlying value is defined outside the candidate loop.

This change allows us to share the same set of VPExternalDefs in different VPlans constructed for a candidate loop. The sub-class can also be used to infer a VPValue uniformity in VPlan based divergence analysis. These changes will be posted in subsequent follow up patches.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94426

Files:
  llvm/lib/Transforms/Vectorize/VPlan.cpp
  llvm/lib/Transforms/Vectorize/VPlan.h
  llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
  llvm/lib/Transforms/Vectorize/VPlanValue.h
  llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
  llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94426.315826.patch
Type: text/x-patch
Size: 6873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210111/1fc4a6db/attachment.bin>


More information about the llvm-commits mailing list