[Vector-Select] Address one of the problems in 10902.
authorNadav Rotem <nadav.rotem@intel.com>
Sat, 24 Sep 2011 18:32:19 +0000 (18:32 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Sat, 24 Sep 2011 18:32:19 +0000 (18:32 +0000)
commit0d5357e3d5bd3edbe4ad09791e69e1fb85d4b17f
tree73c4be57109b2fa7543016096a078cd80a626b53
parent8aa4b4cb6fb4c2dd91b17c115e4f0274f42b25ba
[Vector-Select] Address one of the problems in 10902.

When generating the trunc-store of i1's, we need to use the vector type and not
the scalar type.

This patch fixes the assertion in CodeGen/Generic/bool-vector.ll when
running with -promote-elements.

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