[PATCH] D106649: [RISCV] Add tests showing missed vector saturating add/sub combines

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 23 04:26:14 PDT 2021


frasercrmck created this revision.
frasercrmck added reviewers: craig.topper, rogfer01, HsiangKai, evandro, khchen.
Herald added subscribers: vkmr, luismarques, apazos, sameer.abuasal, steven.zhang, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb.
frasercrmck requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

These will be optimized by upcoming patches. The tests are primarily not
being optimized due to the lack of support for saturating vector
arithmetic in the RISC-V backend.

On top of that, however, a large percentage of the scalable-vector tests
are also lacking support in the DAGCombiner: either in
`ISD::matchBinaryPredicate` or due to checks specifically for
`BUILD_VECTOR` and not `SPLAT_VECTOR`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106649

Files:
  llvm/test/CodeGen/RISCV/rvv/combine-sats.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106649.361156.patch
Type: text/x-patch
Size: 16730 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210723/f213bebf/attachment.bin>


More information about the llvm-commits mailing list