[AArch64][GlobalISel] Fix a crash during s128 G_ICMP legalization due to r366317.
authorAmara Emerson <aemerson@apple.com>
Wed, 24 Jul 2019 20:46:42 +0000 (20:46 +0000)
committerAmara Emerson <aemerson@apple.com>
Wed, 24 Jul 2019 20:46:42 +0000 (20:46 +0000)
commita1997ce2e51d55f72e51dc0d6b989509f6348508
treefd5029c77dc07b773bdd5a85dc0da7d8d45f93d1
parentd2904ccf88e8ed487647feb90cfbf331bd888509
[AArch64][GlobalISel] Fix a crash during s128 G_ICMP legalization due to r366317.

r366317 added a legalization for s128 G_ICMP narrow scalar which tried to hard
code the result type of the new legalized G_SELECT. Change this to instead use
type of the original G_ICMP result and allow the target to legalize it if necessary
later.

llvm-svn: 366943
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-cmp.mir