[LegalizeTypes][SVE] Support widen/split legalization for SPLAT_VECTOR
authorEli Friedman <efriedma@quicinc.com>
Mon, 27 Jul 2020 21:08:31 +0000 (14:08 -0700)
committerEli Friedman <efriedma@quicinc.com>
Thu, 30 Jul 2020 23:17:45 +0000 (16:17 -0700)
commit7e88efa7c5313aab5d840021085f3924d00609bf
treed437b6dcb5881c8df9d77715f2944b35354d33bd
parent09f9f7dd1bfe3ec2625fec4de36f4d9c63593bf7
[LegalizeTypes][SVE] Support widen/split legalization for SPLAT_VECTOR

Just the obvious implementation that rewrites the result type. Also fix
warning from EXTRACT_SUBVECTOR legalization that triggers on the test.

Differential Revision: https://reviews.llvm.org/D84706
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/test/CodeGen/AArch64/sve-vector-splat.ll