[PATCH] D121187: [DAGCombiner][VP] Add DAGCombine for VP_MUL.
Jianjian Guan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 8 00:06:29 PST 2022
jacquesguan created this revision.
jacquesguan added reviewers: frasercrmck, craig.topper, RKSimon, spatel, simoll.
Herald added subscribers: ecnelises, luismarques, apazos, sameer.abuasal, steven.zhang, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: All.
jacquesguan requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.
Herald added a project: LLVM.
This patch contains two DAGCombine:
fold vp_mul X, (splat -1), Mask, EVL -> vp_sub (splat 0), X, Mask, EVL
fold vp_mul X, (1 << C), Mask, EVL -> vp_shl X, C, Mask, EVL
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D121187
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vmul-vp.ll
llvm/test/CodeGen/RISCV/rvv/vmul-vp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121187.413716.patch
Type: text/x-patch
Size: 8584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220308/d9d756f8/attachment.bin>
More information about the llvm-commits
mailing list