[llvm] [AMDGPU] Fixed llvm-debuginfo-analyzer for AMDGPU. (PR #145125)

Adam Yang via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 7 16:09:55 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:

`FirstPhysicalRegister` is defined as 1, so NoReg is excluded. In any case, the assert is removed.

https://github.com/llvm/llvm-project/pull/145125


More information about the llvm-commits mailing list