[llvm] [AMDGPU] Fixed llvm-debuginfo-analyzer for AMDGPU. (PR #145125)
Adam Yang via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 31 14:00:10 PDT 2025
================
@@ -130,6 +130,11 @@ void SIPreAllocateWWMRegs::rewriteRegs(MachineFunction &MF) {
if (VirtReg.isPhysical())
continue;
+ if (!VirtReg.isValid()) {
+ assert(MI.isDebugInstr() && "non-debug use of noreg");
----------------
adam-yang wrote:
Are there AMDGPU instructions that take noreg? I could see other targets failing verifier if the assert is run on all targets.
https://github.com/llvm/llvm-project/pull/145125
More information about the llvm-commits
mailing list