[PATCH] D157411: [VPlan] Simplify logical OR operations within the VPlan.

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 8 09:40:21 PDT 2023


paulwalker-arm created this revision.
Herald added subscribers: tschuett, psnobl, rogfer01, bollu, hiraditya.
Herald added a project: All.
paulwalker-arm requested review of this revision.
Herald added subscribers: llvm-commits, wangpc, vkmr.
Herald added a project: LLVM.

When LoopVectorize if-converts loops it creates instructions that
were no present within the original IR. These instructions make
the VPlan look more costly that it actually is and typically makes
it hard to reason about accurate use counts for blend operations.

This patch add a cut down version of PatternMatch that can operate
on VPInstructions and use this interface to allow VPInstruction
simplification. Specifically, it is used to simplify VPlan IR
related to predicate mask construction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157411

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
  llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157411.548259.patch
Type: text/x-patch
Size: 5724 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230808/3d9dfe27/attachment.bin>


More information about the llvm-commits mailing list