Implement Duncan's suggestion to use the result of getSetCCResultType if it is legal
authorNadav Rotem <nadav.rotem@intel.com>
Sat, 24 Sep 2011 19:48:19 +0000 (19:48 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Sat, 24 Sep 2011 19:48:19 +0000 (19:48 +0000)
commit17e76bda552d5afa652c4bb45f6dbdad67dc5c20
treeae23b4d7741e3a660d9bbdb8bcb747722f6927ce
parent0d5357e3d5bd3edbe4ad09791e69e1fb85d4b17f
Implement Duncan's suggestion to use the result of getSetCCResultType if it is legal
(this is always the case for scalars), otherwise use the promoted result type.

Fix test/CodeGen/X86/vsplit-and.ll when promote-elements is enabled.

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