Fix a crash in the legalization of large vectors.
authorNadav Rotem <nadav.rotem@intel.com>
Tue, 17 Jul 2012 09:07:37 +0000 (09:07 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Tue, 17 Jul 2012 09:07:37 +0000 (09:07 +0000)
commit5589a69f0abd39e583786515cf6c9170554dc8de
tree1587c1546c348bad3d21314a66c0d0dcc71efc62
parentf5c0539092996771824893309f311378e719e32e
Fix a crash in the legalization of large vectors.
When truncating a result of a vector that is split we need
to use the result of the split vector, and not re-split the dead node.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160357 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
test/CodeGen/X86/2012-07-17-vtrunc.ll [new file with mode: 0644]