We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb41408 commit c37f1d1Copy full SHA for c37f1d1
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
@@ -689,6 +689,10 @@ bool SIFoldOperandsImpl::updateOperand(FoldCandidate &Fold) const {
689
if (!TII->isOperandLegal(*MI, OpNo, &New))
690
return false;
691
692
+ const MCInstrDesc &MCID = MI->getDesc();
693
+ if (MCID.getOperandConstraint(OpNo, MCOI::EARLY_CLOBBER) != -1) {
694
+ MI->getOperand(OpNo).setIsEarlyClobber(true);
695
+ }
696
Old.ChangeToImmediate(*ImmVal);
697
return true;
698
}
0 commit comments