[PATCH] D156709: [RISCVRVVInitUndef] Ignore tied use for partial undef register

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 09:12:09 PDT 2023


reames created this revision.
reames added reviewers: craig.topper, BeMg.
Herald added subscribers: 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, bollu, simoncook, johnrusso, rbar, asb, 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.

The purpose of this code is to restrict overlap between source and destination registers.  The tied input register is conceptually part of the destination.  I can't see any reason why we need to prevent a partial undef tied source here, and skipping it reduces register pressure slightly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156709

Files:
  llvm/lib/Target/RISCV/RISCVRVVInitUndef.cpp
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-trunc-vp.ll
  llvm/test/CodeGen/RISCV/rvv/subregister-undef-early-clobber.mir
  llvm/test/CodeGen/RISCV/rvv/undef-earlyclobber-chain.ll
  llvm/test/CodeGen/RISCV/rvv/vector-interleave-fixed.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156709.545701.patch
Type: text/x-patch
Size: 48937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230731/3add9262/attachment.bin>


More information about the llvm-commits mailing list