[PATCH] D155654: [RISCV] Add SchedRead for Merge operands on MASK Pseudos

Michael Maitland via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 15:38:01 PDT 2023


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

For Pseudos that end in _MASK, in the case that the instruction
should be mask undisturbed, the destination register must be read
to determine the undisturbed values. This patch adds a SchedRead
that gets passed to MASK pseudos to represent this extra read that
must occur.

A future patch should do something similiar for when a pseudo is TU,
since those instructions must also read their destination to preserve
undisturbed-ness.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155654

Files:
  llvm/lib/Target/RISCV/RISCVInstrInfoV.td
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
  llvm/lib/Target/RISCV/RISCVInstrInfoXTHead.td
  llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
  llvm/lib/Target/RISCV/RISCVScheduleV.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155654.541764.patch
Type: text/x-patch
Size: 148410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230718/bf1de158/attachment-0001.bin>


More information about the llvm-commits mailing list