[AMDGPU] Fixed asan error with agpr spilling
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 11 Jul 2019 22:30:11 +0000 (22:30 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 11 Jul 2019 22:30:11 +0000 (22:30 +0000)
commit28550c8680453b81fa00a3b221f003ac467d15c3
treecd797c77a96269e22e3a0a3062d93746dc8c20ad
parenta35a7d49e5e904bedd0bb7623ec04af499b5e9be
[AMDGPU] Fixed asan error with agpr spilling

Instruction was used after it was erased.

llvm-svn: 365837
llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp