[PATCH] D140157: [RISCV][InsertVSETVLI] Split out demanded property for zero/non-zero of VL

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 15 12:58:29 PST 2022


reames created this revision.
reames added reviewers: craig.topper, pcwang-thead, 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: eopXD, MaskRay.
Herald added a project: LLVM.

The scalar move instructions (vmv.s.x, and fvmv.s.f) depend solely on whether the VL is 0 or non-zero.  By tracking the fact we only demand the zeroness and not the whole VL value, we can allow changing VL over a scalar move.  This helps to eliminate vsetvli toggles.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140157

Files:
  llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-buildvec.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-shuffles.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-mask-buildvec.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-fp.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-int.ll
  llvm/test/CodeGen/RISCV/rvv/fold-binary-reduce.ll
  llvm/test/CodeGen/RISCV/rvv/vreductions-fp-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vreductions-int.ll

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


More information about the llvm-commits mailing list