ExpandUnalignedLoad doesn't handle vectors right at all apparently.
authorChris Lattner <sabre@nondot.org>
Mon, 19 Nov 2007 21:38:03 +0000 (21:38 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 19 Nov 2007 21:38:03 +0000 (21:38 +0000)
commite400af83b3f8b69407a8963f1d2e2c82fa766f33
treec990603cd45bb47130ef8c9f14c0834a5df3efaa
parent6c9c6800b844771117943c400d0a9a47460a46b9
ExpandUnalignedLoad doesn't handle vectors right at all apparently.
Fix a couple of problems:
1. Don't assume the VT-1 is a VT that is half the size.
2. Treat vectors of FP in the vector path, not the FP path.

This has a couple of remaining problems before it will work with
the code in PR1811: the code below this change assumes that it can
use extload/shift/or to construct the result, which isn't right for
vectors.

This also doesn't handle vectors of 1 or vectors that aren't pow-2.

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