]> granicus.if.org Git - llvm/commit
AMDGPU/LoadStoreOptimizer: Set the correct offset whem merging MMOs
authorTom Stellard <tstellar@redhat.com>
Mon, 5 Aug 2019 16:08:44 +0000 (16:08 +0000)
committerTom Stellard <tstellar@redhat.com>
Mon, 5 Aug 2019 16:08:44 +0000 (16:08 +0000)
commit3c027d4e7dea6b7f865d950748323bfac81194c2
treeae65612647265f6b65511700f0c8afb933fccd98
parent5c6e37cfc139383e87a3a07c325bb4189c84be48
AMDGPU/LoadStoreOptimizer: Set the correct offset whem merging MMOs

Summary:
This is a follow up to r367237.  MachineFunction::getMachineMemOperand()
adds the offset parameter to the existing offset instead of resetting it.
So we need to reset the offset to the correct value after calling this
function.

Reviewers: arsenm

Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367881 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
test/CodeGen/AMDGPU/merge-load-store.mir