]> granicus.if.org Git - llvm/commit
AMDGPU: Fix MMO when splitting spill
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 23 Nov 2016 20:52:53 +0000 (20:52 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 23 Nov 2016 20:52:53 +0000 (20:52 +0000)
commit79d4f8b8b1ce430c3d5dac4fc72a9eebaed24fe1
treea3fe0b66e9262af28a758101b4c016fa77f27d04
parent6e1a44693e163b866727a39451fea70264b3e253
AMDGPU: Fix MMO when splitting spill

The size and offset were wrong. The size of the object was
being used for the size of the access, when here it is really
being split into 4-byte accesses. The underlying object size
is set in the MachinePointerInfo, which also didn't have the
offset set.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287806 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIRegisterInfo.cpp
lib/Target/AMDGPU/SIRegisterInfo.h
test/CodeGen/AMDGPU/control-flow-fastregalloc.ll
test/CodeGen/AMDGPU/si-spill-sgpr-stack.ll
test/CodeGen/AMDGPU/vgpr-spill-emergency-stack-slot.ll