[PATCH] D153067: [RISCV] Add a policy operand to VPseudoBinaryNoMaskTU [NFC]

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 12:37:59 PDT 2023


reames created this revision.
reames added reviewers: craig.topper, asb, frasercrmck, luke.
Herald added subscribers: jobnoorman, VincentWu, vkmr, 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: wangpc, eopXD, MaskRay.
Herald added a project: LLVM.

This change adds a policy operand to the helper class which is used for binary ops like vadd, but also, possibly surprisingly, some of the vslide variants.  This allows us to represent the tail agnostic state with this pseudo family - previously, we could only represent tail undefined and tail undisturbed.  (Since these don't have a mask, they're always mask undefined.)

This is NFC because no current producer uses the tail agnostic state.  This will change in an upcoming change to doPeepholeMaskedRVV.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153067

Files:
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
  llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
  llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153067.531878.patch
Type: text/x-patch
Size: 6380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230615/27a1d9c8/attachment.bin>


More information about the llvm-commits mailing list