If we need a scratch register for the spill don't use the same scratch
register that is being used for the MBUF offset.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
As discussed offline with Mahesha, this and https://reviews.llvm.org/D85767 are fixing the same issue, we decided I would take the fix forward.
Comment Actions
LGTM with test nit. We should probably consider just walking LivePhysRegs over the newly inserted instructions to avoid this kind of issue in the future
llvm/test/CodeGen/AMDGPU/stack-realign.ll | ||
---|---|---|
373 | I would like to eventually eliminate amdgpu-num-vgpr, so expressing the closest in terms of amdgpu-waves-per-eu is somewhat preferable |
Can you add a comment explaining the point of the test?