[SVE][CodeGen] Extend index of masked gathers
commitabe7775f5a43e5a0d8ec237542274ba3e73937e4
authorKerry McLaughlin <kerry.mclaughlin@arm.com>
Thu, 10 Dec 2020 11:45:45 +0000 (10 11:45 +0000)
committerKerry McLaughlin <kerry.mclaughlin@arm.com>
Thu, 10 Dec 2020 13:54:45 +0000 (10 13:54 +0000)
treed9636ddc6cc47cadc3b98de06da58215abf83b66
parent2fc4afda0f57d6c99b591c1f71f6da933d5e7b31
[SVE][CodeGen] Extend index of masked gathers

This patch changes performMSCATTERCombine to also promote the indices of
masked gathers where the element type is i8 or i16, and adds various tests
for gathers with illegal types.

Reviewed By: sdesmalen

Differential Revision: https://reviews.llvm.org/D91433
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-masked-gather-legalize.ll