@@ -7945,7 +7945,7 @@ void SIInstrInfo::moveToVALUImpl(SIInstrWorklist &Worklist,
79457945 }
79467946 legalizeOperands (*NewInstr, MDT);
79477947 int SCCIdx = Inst.findRegisterDefOperandIdx (AMDGPU::SCC, /* TRI=*/ nullptr );
7948- MachineOperand SCCOp = Inst.getOperand (SCCIdx);
7948+ const MachineOperand & SCCOp = Inst.getOperand (SCCIdx);
79497949 addSCCDefUsersToVALUWorklist (SCCOp, Inst, Worklist, CondReg);
79507950 Inst.eraseFromParent ();
79517951 return ;
@@ -7985,7 +7985,7 @@ void SIInstrInfo::moveToVALUImpl(SIInstrWorklist &Worklist,
79857985 legalizeOperandsVALUt16 (*NewInstr, MRI);
79867986 legalizeOperands (*NewInstr, MDT);
79877987 int SCCIdx = Inst.findRegisterDefOperandIdx (AMDGPU::SCC, /* TRI=*/ nullptr );
7988- MachineOperand SCCOp = Inst.getOperand (SCCIdx);
7988+ const MachineOperand & SCCOp = Inst.getOperand (SCCIdx);
79897989 addSCCDefUsersToVALUWorklist (SCCOp, Inst, Worklist, CondReg);
79907990 Inst.eraseFromParent ();
79917991 return ;
@@ -8183,7 +8183,7 @@ void SIInstrInfo::moveToVALUImpl(SIInstrWorklist &Worklist,
81838183 AMDGPU::OpName::src0_modifiers) >= 0 )
81848184 NewInstr.addImm (0 );
81858185 if (AMDGPU::hasNamedOperand (NewOpcode, AMDGPU::OpName::src0)) {
8186- MachineOperand Src = Inst.getOperand (1 );
8186+ const MachineOperand & Src = Inst.getOperand (1 );
81878187 NewInstr->addOperand (Src);
81888188 }
81898189
@@ -9199,7 +9199,7 @@ void SIInstrInfo::movePackToVALU(SIInstrWorklist &Worklist,
91999199 addUsersToMoveToVALUWorklist (ResultReg, MRI, Worklist);
92009200}
92019201
9202- void SIInstrInfo::addSCCDefUsersToVALUWorklist (MachineOperand &Op,
9202+ void SIInstrInfo::addSCCDefUsersToVALUWorklist (const MachineOperand &Op,
92039203 MachineInstr &SCCDefInst,
92049204 SIInstrWorklist &Worklist,
92059205 Register NewCond) const {
0 commit comments