[PATCH] D125424: [RISCV] Use tail agnostic policy when selecting riscv_fma_vl to instructions

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 11 14:38:40 PDT 2022


craig.topper created this revision.
craig.topper added reviewers: frasercrmck, khchen, kito-cheng, rogfer01.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

riscv_fma_vl doesn't have a tail, so use the tail_agnostic policy.

We were already doing this for some patterns. I think the patterns
with fneg and mask were added later and I copied the tail policy
from the unmasked patterns.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125424

Files:
  llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vfma-vp.ll
  llvm/test/CodeGen/RISCV/rvv/sink-splat-operands.ll
  llvm/test/CodeGen/RISCV/rvv/vfma-vp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125424.428781.patch
Type: text/x-patch
Size: 40498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220511/5c5756fb/attachment.bin>


More information about the llvm-commits mailing list