[AArch64][GlobalISel] Widen (<2 x s16> = G_BUILD_VECTOR) to <2 x s32>.
authorAmara Emerson <amara@apple.com>
Wed, 19 Jul 2023 23:47:38 +0000 (16:47 -0700)
committerAmara Emerson <amara@apple.com>
Wed, 19 Jul 2023 23:50:54 +0000 (16:50 -0700)
commitccffc2705054c24a5768b59fbb96c3044ff1a8d4
tree4c6a7d6a2816ee926e9d82b2cb9730170b25df19
parentf317ce218e75abe6bc0818709fbbb81657224ffe
[AArch64][GlobalISel] Widen (<2 x s16> = G_BUILD_VECTOR) to <2 x s32>.

We don't support this as a argument or return type, it's always promoted to <2 x s32>.

Performing the widening prevents us from having selection failures due to unsupported
extends.

Fixes https://github.com/llvm/llvm-project/issues/58274
llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-build-vector.mir
llvm/test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir
llvm/test/CodeGen/AArch64/GlobalISel/select-unmerge.mir