OSDN Git Service

[X86] Fix bug in legalize vector types - Split large loads
authorAyman Musa <ayman.musa@intel.com>
Thu, 2 Nov 2017 13:07:06 +0000 (13:07 +0000)
committerAyman Musa <ayman.musa@intel.com>
Thu, 2 Nov 2017 13:07:06 +0000 (13:07 +0000)
commita223e9099142f78a1c2463b83d5351cdfa3d2fc1
treec76ee801f8220a163b6dc8ae7dfcaf5debd628ac
parent652842ec9ac1a6730335ad89827eb4133c0253fd
[X86] Fix bug in legalize vector types - Split large loads

When splitting a large load to smaller legally-typed loads, the last load should be padded to reach the size of the previous one so a CONCAT_VECTORS node could reunite them again.
The code currently pads the last load to reach the size of the first load (instead of the previous).

Differential Revision: https://reviews.llvm.org/D38495

Change-Id: Ib60b55ed26ce901fabf68108daf52683fbd5013f

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