AMDGPU: Fix splitting vector loads with existing offsets
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 14 Dec 2015 16:59:40 +0000 (16:59 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 14 Dec 2015 16:59:40 +0000 (16:59 +0000)
commit4f0027139e87aee191f2a3f863c966ead82dcd4f
treeba4c5540affc7789f4f84b38d5dcc92acc0ca937
parent2dab6252a420be044d8ce8738f8de9451d5a527b
AMDGPU: Fix splitting vector loads with existing offsets

If the original MMO had an offset, it was dropped.
Also use the correct alignment after adding the new offset.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255508 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
test/CodeGen/AMDGPU/split-vector-memoperand-offsets.ll [new file with mode: 0644]