[PATCH] D144125: [VPlan] Improve VPRecipeBase::isPhi checking

Michael Maitland via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 20 12:30:13 PST 2023


michaelmaitland updated this revision to Diff 498933.
michaelmaitland added a comment.

Instead of using multiple isa checks in the same guard (and those same checks being duplicated across multiple ifs), move into utils method. Also move isPhi out of VPRecipeBase to reduce class bloat.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144125/new/

https://reviews.llvm.org/D144125

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144125.498933.patch
Type: text/x-patch
Size: 8006 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230220/381cd84d/attachment.bin>


More information about the llvm-commits mailing list