Fix a bug in FindMemType. When widening vector loads, use a wider memory type
authorNadav Rotem <nadav.rotem@intel.com>
Mon, 13 Jun 2011 18:13:24 +0000 (18:13 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Mon, 13 Jun 2011 18:13:24 +0000 (18:13 +0000)
commit00404bfaef2cd9516191fd35cc08a94a536b1048
tree946a360812601fb882c9e30a4261c2057cd3fcd3
parent83f9467436d9e2198010af329ffac188d7a8702f
Fix a bug in FindMemType. When widening vector loads, use a wider memory type
only if the number of packed elements is a power of two.
Bug found in Duncan's testcase.

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