[GlobalISel][Legalizer] Fix minScalarEltSameAsIf to handle p0 element types.
authorAmara Emerson <amara@apple.com>
Sun, 11 Sep 2022 15:14:58 +0000 (16:14 +0100)
committerAmara Emerson <amara@apple.com>
Mon, 12 Sep 2022 23:01:37 +0000 (00:01 +0100)
commit25bcc8c7974e80d6d39ccd359c9b5beb09fa7694
tree5c258a84afb32a75714d0d603c193344f42352ec
parent540d054b121d487ebbeefc6a21ce1fb1d3c1b9df
[GlobalISel][Legalizer] Fix minScalarEltSameAsIf to handle p0 element types.

The mutation the action generates tries to change the input type into the
element type of larger vector type. This doesn't work if the larger element
type is a vector of pointers since it creates an illegal mutation between
scalar and pointer types.

Differential Revision: https://reviews.llvm.org/D133671
llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
llvm/unittests/CodeGen/GlobalISel/LegalizerInfoTest.cpp