[PATCH] D136832: [VectorUtils] Add getShuffleDemandedElts helper

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 27 03:30:29 PDT 2022


RKSimon created this revision.
RKSimon added reviewers: spatel, nikic, lebedev.ri, craig.topper.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
RKSimon requested review of this revision.
Herald added a project: LLVM.

We have similar code to translate a demanded elements mask for a shuffle's operands in multiple places - this patch adds a helper function to VectorUtils and updates a number of locations to use it directly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136832

Files:
  llvm/include/llvm/Analysis/VectorUtils.h
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/Analysis/VectorUtils.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/unittests/Analysis/VectorUtilsTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136832.471105.patch
Type: text/x-patch
Size: 10174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221027/d0976e93/attachment.bin>


More information about the llvm-commits mailing list