[PATCH] D158590: [RISCV] Fix assertion of getShuffleCost

Wang Pengcheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 23 02:56:27 PDT 2023


wangpc created this revision.
wangpc added reviewers: luke, ABataev, craig.topper, reames.
Herald added subscribers: jobnoorman, sunshaoce, VincentWu, vkmr, frasercrmck, 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, asb, hiraditya, arichardson.
Herald added a project: All.
wangpc requested review of this revision.
Herald added subscribers: llvm-commits, eopXD, MaskRay.
Herald added a project: LLVM.

This assertion is introduced by D157425 <https://reviews.llvm.org/D157425>.

We should calculate the cost iff `Mask` is not empty.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158590

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/test/Transforms/SLPVectorizer/RISCV/vecreduce.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158590.552641.patch
Type: text/x-patch
Size: 4099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230823/c76c3b4b/attachment.bin>


More information about the llvm-commits mailing list