OSDN Git Service

Enhance type legalization on bitcast from vector to integer
authorMichael Liao <michael.liao@intel.com>
Thu, 13 Sep 2012 19:58:21 +0000 (19:58 +0000)
committerMichael Liao <michael.liao@intel.com>
Thu, 13 Sep 2012 19:58:21 +0000 (19:58 +0000)
commit092122f124b6589a3a432473c1047bf5834df3c1
tree4c61108a3f08456937b2aa4215d3732b85c10e36
parentda0e8219b72e79a41f18c4dc4ea7e11ec2211d2e
Enhance type legalization on bitcast from vector to integer

- Find a legal vector type before casting and extracting element from it.
- As the new vector type may have more than 2 elements, build the final
  hi/lo pair by BFS pairing them from bottom to top.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163830 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp
test/CodeGen/X86/bitcast-i256.ll [new file with mode: 0644]