Skip to content

Commit a0a0504

Browse files
committed
MAD_U64_U32 set early-clobber - Machine verifier
Fix the test failure with this PR
1 parent 4612f91 commit a0a0504

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ bool AMDGPUInstructionSelector::selectG_AMDGPU_MAD_64_32(
584584
I.setDesc(TII.get(Opc));
585585
I.addOperand(*MF, MachineOperand::CreateImm(0));
586586
I.addImplicitDefUseOperands(*MF);
587+
I.getOperand(0).setIsEarlyClobber(true);
587588
return constrainSelectedInstRegOperands(I, TII, TRI, RBI);
588589
}
589590

0 commit comments

Comments
 (0)