[PATCH] D121111: [RISCV] Also sink a splat for the first operand of instructions with vector-scalar cases

Roger Ferrer Ibanez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 7 06:21:25 PST 2022


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

In D117703 <https://reviews.llvm.org/D117703> we were limited by the handling of commutative nodes in ISel, so we avoided sinking the first operand.

D117955 <https://reviews.llvm.org/D117955> landed and lifted this limitation so we can sink the first operand too.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121111

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/sink-splat-operands-commute.ll
  llvm/test/CodeGen/RISCV/rvv/sink-splat-operands.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121111.413441.patch
Type: text/x-patch
Size: 40081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220307/146e2835/attachment.bin>


More information about the llvm-commits mailing list