]> granicus.if.org Git - llvm/commit
[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)
commit2d9158da324409121c2502375a091d8d861f99f5
tree95da1f8bc16090e64a49f9e135c7c79bac98e4c6
parent3d24386b4b61f95038c1c9ef6a90f31f178fcd53
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366943 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
test/CodeGen/AArch64/GlobalISel/legalize-cmp.mir