[PATCH] D94423: [VPlan] Introduce VPConstant specialization for VPValue

Satish K Guggilla via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 08:56:14 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 VPConstant specialization for VPValues. When constructing VPlan for a candidate loop in the native path, we now create a VPConstant when the corresponding underlying value is a constant.

This change allows us to share the same set of VPConstants 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/D94423

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/lib/Transforms/Vectorize/VPlanVerifier.h
  llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94423.315819.patch
Type: text/x-patch
Size: 11107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210111/74c3e2ba/attachment.bin>


More information about the llvm-commits mailing list