[PATCH] D128219: [RISCV] Fix crash when costing scalable gather/scatter of pointer

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 12:11:58 PDT 2022


reames created this revision.
reames added reviewers: craig.topper, kito-cheng, frasercrmck.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, 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, asb, hiraditya, arichardson, mcrosier.
Herald added a project: All.
reames requested review of this revision.
Herald added subscribers: alextsao1999, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

This was a bug introduced in d764aa.  A pointer type is not a primitive type, and thus we were ending up dividing by zero when computing VLMax.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128219

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/RISCV/scalable-gather.ll
  llvm/test/Analysis/CostModel/RISCV/scalable-scatter.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128219.438452.patch
Type: text/x-patch
Size: 20692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220620/1b0aa0ab/attachment.bin>


More information about the llvm-commits mailing list