[PATCH] D149462: [RISCV] Rewrite isLegalElementTypeForRVV in terms of ValueTypes [nfc]

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 28 09:44:39 PDT 2023


reames created this revision.
reames added reviewers: craig.topper, luke, asb, kito-cheng.
Herald added subscribers: jobnoorman, 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, niosHD, sabuasal, bollu, simoncook, johnrusso, rbar, hiraditya, arichardson, mcrosier.
Herald added a project: All.
reames requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

This was briefly mentioned as a possibility in review discussion on D149369 <https://reviews.llvm.org/D149369>.

One slightly surprising bit to call out - these interfaces can get invoked with non-vector typed arguments.  LoopVectorizer likes to call the costing interfaces with scalar types when unrolling, but not vectorizing.  I found that surprising, not sure if others do.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149462

Files:
  llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149462.517962.patch
Type: text/x-patch
Size: 7573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230428/c649fb8c/attachment.bin>


More information about the llvm-commits mailing list