TypeLegalizer: Fix a bug in the promotion of elements of integer vectors.
authorNadav Rotem <nadav.rotem@intel.com>
Sat, 4 Jun 2011 20:32:01 +0000 (20:32 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Sat, 4 Jun 2011 20:32:01 +0000 (20:32 +0000)
commitf1c025d1d106905df3d38d2482fde68c8f81b107
tree0c7099030be1c614f806af2e1a9500ccc78946cf
parent9fa89334f1045b56e8ae409004e119d47ef17ec7
TypeLegalizer: Fix a bug in the promotion of elements of integer vectors.
(only happens when using the -promote-elements option).

The correct legalization order is to first try to promote element. Next, we try
to widen vectors.

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