[PATCH] D106575: [SelectionDAG] Support scalable-vector splats in yet more cases
Fraser Cormack via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 22 10:22:19 PDT 2021
frasercrmck created this revision.
frasercrmck added reviewers: RKSimon, craig.topper, dmgreen, kmclaughlin.
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.
frasercrmck requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.
This patch extends support for (scalable-vector) splats in the
DAGCombiner via the `ISD::matchBinaryPredicate` function, which enable a
variety of simple combines of constants.
Users of this function may now have to distinguish between
`BUILD_VECTOR` and `SPLAT_VECTOR` vector operands. The way of dealing
with this in-tree follows the approach added for
`ISD::matchUnaryPredicate` implemented in D94501 <https://reviews.llvm.org/D94501>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106575
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/RISCV/rvv/combine-splats.ll
llvm/test/CodeGen/RISCV/rvv/urem-seteq-vec.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106575.360873.patch
Type: text/x-patch
Size: 7263 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210722/0fd2fd60/attachment.bin>
More information about the llvm-commits
mailing list