[AMDGPU] Fix RP tracker's live registers after processing a memory clause.
authorValery Pykhtin <valery.pykhtin@gmail.com>
Mon, 31 Oct 2022 13:12:35 +0000 (14:12 +0100)
committerValery Pykhtin <valery.pykhtin@gmail.com>
Tue, 1 Nov 2022 10:47:59 +0000 (11:47 +0100)
commit6a748100a02a8cf87363c4db91b6dd3bc2166d31
treee9cd0f84ed52883e71fec2b0092575e59295be9d
parenta8085ffc924ca4f04303ea2635f9c76732689205
[AMDGPU] Fix RP tracker's live registers after processing a memory clause.

It's incorrect to reuse live registers left from the first instruction in a clause after the clause as they don't contain in-clause defs.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D137081
llvm/lib/Target/AMDGPU/SIFormMemoryClauses.cpp
llvm/test/CodeGen/AMDGPU/spill-vgpr.ll
llvm/test/CodeGen/AMDGPU/unallocatable-bundle-regression.mir