[AMDGPU] Fix SIPostRABundler crash on null register used by dbg value
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 18 Nov 2021 23:35:54 +0000 (15:35 -0800)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 19 Nov 2021 01:01:19 +0000 (17:01 -0800)
commitf8e615462b4f1376674530cc55ab6b8993cec726
tree736895af9eddccbd00f1e47e36287e19325e3d65
parentf2b5d81f62c71212cc16f7eb8f02fad4f1956908
[AMDGPU] Fix SIPostRABundler crash on null register used by dbg value

Recently we started generate DBG_VALUEs with $noreg operands.
This crashes SIPostRABundler, and it should not iterate these
registers anyway.

Fixes: SWDEV-311733

Differential Revision: https://reviews.llvm.org/D114202
llvm/lib/Target/AMDGPU/SIPostRABundler.cpp
llvm/test/CodeGen/AMDGPU/postra-bundle-memops.mir