]> granicus.if.org Git - llvm/commit
[DAGCombiner] Prevent the combine added in r367710 from creating illegal types after...
authorCraig Topper <craig.topper@intel.com>
Sat, 3 Aug 2019 23:09:13 +0000 (23:09 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 3 Aug 2019 23:09:13 +0000 (23:09 +0000)
commitdcdaa66d662c682601e4093e9a840d46411e68dd
tree6ce659918ee70c31bdff732f02e8d69bb504e9e9
parent0f6cfce4ebf2dade1e69c6c4ac3ad000d2892f25
[DAGCombiner] Prevent the combine added in r367710 from creating illegal types after type legalization.

This is further fix for PR42880.

Sanjay already disabled the X86 TLI hook for non-simple types,
but we should really call isTypeLegal here if we're after type
legalization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367768 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp