OSDN Git Service

Improve the generated code by getCopyFromPartsVector for promoted integer types.
authorNadav Rotem <nadav.rotem@intel.com>
Sun, 12 Jun 2011 14:49:38 +0000 (14:49 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Sun, 12 Jun 2011 14:49:38 +0000 (14:49 +0000)
commitb05f14b3b9b372316f4274de246b8a58cf6063eb
tree9851640e230542597004aeed80e3ae3005ec8344
parent65255b98ad5b35b14df8aebcda38e9d5cc646886
Improve the generated code by getCopyFromPartsVector for promoted integer types.
Instead of scalarizing, and doing an element-by-element truncat, use vector
truncate.
Add support for scalarization of vectors:  i8 -> <1 x i1> (from Duncan's
testcase).

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