[PATCH] D145971: [RISCV][NFC] Share interleave mask checking logic

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 13 11:15:39 PDT 2023


luke created this revision.
luke added reviewers: craig.topper, reames.
Herald added subscribers: jobnoorman, asb, pmatos, VincentWu, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
luke requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

This adds two new methods to ShuffleVectorInst, isInterleave and
isInterleaveMask, so that the logic to check if a shuffle mask is an
interleave can be shared across the TTI, codegen and the interleaved
access pass.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145971

Files:
  llvm/include/llvm/IR/Instructions.h
  llvm/lib/CodeGen/InterleavedAccessPass.cpp
  llvm/lib/IR/Instructions.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/RISCV/shuffle-interleave.ll
  llvm/unittests/IR/ShuffleVectorInstTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145971.504765.patch
Type: text/x-patch
Size: 16454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230313/25089bab/attachment.bin>


More information about the llvm-commits mailing list