Skip to content

Commit 4e0f8a4

Browse files
committed
[AMDGPU] Fix EXPENSIVE_CHECKS failure in #89612
1 parent 27f53b2 commit 4e0f8a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2089,7 +2089,7 @@ bool AMDGPUInstructionSelector::selectPOPSExitingWaveID(
20892089
// intrinsic is IntrReadMem/IntrWriteMem but the instruction is not marked
20902090
// mayLoad/mayStore and tablegen complains about the mismatch.
20912091
auto MIB = BuildMI(*MBB, &MI, DL, TII.get(AMDGPU::S_MOV_B32), Dst)
2092-
.addDef(AMDGPU::SRC_POPS_EXITING_WAVE_ID);
2092+
.addReg(AMDGPU::SRC_POPS_EXITING_WAVE_ID);
20932093
MI.eraseFromParent();
20942094
return constrainSelectedInstRegOperands(*MIB, TII, TRI, RBI);
20952095
}

0 commit comments

Comments
 (0)