AMDGPU: Clear offset register when using local stack area
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 10 Sep 2020 16:11:53 +0000 (12:11 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 16 Sep 2020 16:56:40 +0000 (12:56 -0400)
commit367248956e93982a73c0441868a562aeb85af5a0
tree43cff716464cd00741bf399ddfc9461ef150baca
parentdeae5e567d65c49c40abc99d5ad53855c9872d5b
AMDGPU: Clear offset register when using local stack area

eliminateFrameIndex won't fix up the offset register when the direct
frame index reference is moved to a separate move instruction. Switch
the offset to a base 0 (which it probably should be to begin with).
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/test/CodeGen/AMDGPU/local-stack-alloc-block-sp-reference.ll
llvm/test/CodeGen/AMDGPU/stack-pointer-offset-relative-frameindex.ll