AMDGPU: Correct prolog SP initialization logic
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 28 Jul 2020 21:36:14 +0000 (17:36 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 5 Aug 2020 19:47:53 +0000 (15:47 -0400)
commitec8c172d01eb14eba890f36205da0613dda7f742
tree8351072dbd71cad31fe3d55501dd0c935c9e1520
parent105608a4c2821ca8f8340104614c1176ed1ed82d
AMDGPU: Correct prolog SP initialization logic

Having callees that will read SP is not the only reason we need to
reference the stack pointer.
llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
llvm/lib/Target/AMDGPU/SIFrameLowering.h
llvm/test/CodeGen/AMDGPU/GlobalISel/dynamic-alloca-uniform.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/non-entry-alloca.ll
llvm/test/CodeGen/AMDGPU/non-entry-alloca.ll