[PATCH] D100813: [DAGCombiner] Support fold zero scalar vector.
JunMa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 19 21:09:48 PDT 2021
junparser created this revision.
junparser added reviewers: david-arm, paulwalker-arm, sdesmalen, kmclaughlin, ctetreau, efriedma.
Herald added subscribers: frasercrmck, ecnelises, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
junparser requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.
This patch changes ISD::isBuildVectorAllZeros to
ISD::isConstantSplatVectorAllZeros which supports handle zero sclar vector.
TestPlan: check-llvm
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100813
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AArch64/sve-int-arith.ll
llvm/test/CodeGen/AArch64/sve-int-log.ll
llvm/test/CodeGen/RISCV/rvv/vdiv-sdnode-rv32.ll
llvm/test/CodeGen/RISCV/rvv/vdiv-sdnode-rv64.ll
llvm/test/CodeGen/RISCV/rvv/vrem-sdnode-rv32.ll
llvm/test/CodeGen/RISCV/rvv/vrem-sdnode-rv64.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100813.338703.patch
Type: text/x-patch
Size: 19970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210420/ab79f812/attachment.bin>
More information about the llvm-commits
mailing list