Handle load/store of misaligned vectors that are the
authorDale Johannesen <dalej@apple.com>
Wed, 27 Feb 2008 22:36:00 +0000 (22:36 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 27 Feb 2008 22:36:00 +0000 (22:36 +0000)
commit8155d64c2ffab8b17e0fd8e3b7a66fcef6a8ec9d
tree7983e1d293e579665224cc08cc2a7bfd212ba469
parentef194ed74033eba099f4f391ffdfc176f9aa6f26
Handle load/store of misaligned vectors that are the
same size as an int type by doing a bitconvert of
load/store of the int type (same algorithm as floating point).
This makes them work for ppc Altivec.  There was some
code that purported to handle loads of (some) vectors
by splitting them into two smaller vectors, but getExtLoad
rejects subvector loads, so this could never have worked;
the patch removes it.

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