OSDN Git Service

[DAG] Fix incorrect alignment of ext load.
authorNirav Dave <niravd@google.com>
Thu, 22 Sep 2016 17:28:43 +0000 (17:28 +0000)
committerNirav Dave <niravd@google.com>
Thu, 22 Sep 2016 17:28:43 +0000 (17:28 +0000)
commit489cfe73c22cfb191ec8f334eb21745a349d7dfa
tree8a85ef38753be7aa984f7cf64e87a1c69e229806
parent7924acd64f3ff5099ddbfe3f5964a919c22b639e
[DAG] Fix incorrect alignment of ext load.

Correctly use alignment size from loaded size not output value size.

Reviewers: jyknight, tstellarAMD, arsenm

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282177 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/AMDGPU/extload-align.ll [new file with mode: 0644]