The change for PR9190 wasn't quite right. We need to avoid making the
authorEric Christopher <echristo@apple.com>
Wed, 16 Feb 2011 01:10:03 +0000 (01:10 +0000)
committerEric Christopher <echristo@apple.com>
Wed, 16 Feb 2011 01:10:03 +0000 (01:10 +0000)
commit169e1552e748348b033fb6817df4bffc345e5583
tree7c722c07d83887b9bf49eac9ad6bdcad915f227f
parentf621e3b6d633ac50ced73aafa31463237ae9f4f4
The change for PR9190 wasn't quite right. We need to avoid making the
transformation if we can't legally create a build vector of the correct
type. Check that we can make the transformation first, and add a TODO to
refactor this code with similar cases.

Fixes: PR9223 and rdar://9000350
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125631 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/legalize-sub-zero-2.ll [new file with mode: 0644]