[DAGCombiner] Teach scalarizeExtractedBinop to support scalable splat.
authorjacquesguan <Jianjian.Guan@streamcomputing.com>
Thu, 14 Jul 2022 02:41:42 +0000 (10:41 +0800)
committerjacquesguan <Jianjian.Guan@streamcomputing.com>
Tue, 26 Jul 2022 01:31:45 +0000 (09:31 +0800)
commitcb370cf41374de4ab3d522b480aa7af118098f1f
treea75c2ab161154d4a405f53ba6abe21eee2dd443f
parent9877159dd65ae6d2c4afc4c459d2eefe2473e616
[DAGCombiner] Teach scalarizeExtractedBinop to support scalable splat.

This patch supports the scalable splat part for scalarizeExtractedBinop.

Differential Revision: https://reviews.llvm.org/D129725
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/RISCV/rvv/extractelt-fp-rv32.ll
llvm/test/CodeGen/RISCV/rvv/extractelt-fp-rv64.ll
llvm/test/CodeGen/RISCV/rvv/extractelt-int-rv32.ll