[PATCH] D140147: [RISCV][InsertVSETVLI] Rewrite scalar insert forward rule in terms of demanded fields

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 15 11:55:13 PST 2022


reames created this revision.
reames added reviewers: craig.topper, asb, frasercrmck.
Herald added subscribers: sunshaoce, VincentWu, StephenFan, vkmr, 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, 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 is mostly geared at consolidating logic into one form to reduce code duplication, but also has the effect of being a slight generalization.  Since these operations aren't masked, we can ignore the mask policy bit when deciding on compatibility.  The previous code was overly strict in checking that both policy bits matched.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140147

Files:
  llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
  llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140147.483279.patch
Type: text/x-patch
Size: 4309 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221215/b77ad147/attachment.bin>


More information about the llvm-commits mailing list