Skip to content

Commit dea0f42

Browse files
committed
Removed the assert that the instruction that $noreg is part of has to be a debug inst
1 parent c938125 commit dea0f42

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/AMDGPU/SIPreAllocateWWMRegs.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,8 @@ void SIPreAllocateWWMRegs::rewriteRegs(MachineFunction &MF) {
130130
if (VirtReg.isPhysical())
131131
continue;
132132

133-
if (!VirtReg.isValid()) {
134-
assert(MI.isDebugInstr() && "non-debug use of noreg");
133+
if (!VirtReg.isValid())
135134
continue;
136-
}
137135

138136
if (!VRM->hasPhys(VirtReg))
139137
continue;

0 commit comments

Comments
 (0)