reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
333 if (!TII->isOperandLegal(*MI, OpNo, OpToFold)) { 335 unsigned Opc = MI->getOpcode(); 349 MI->setDesc(TII->get(NewOpc)); 350 bool FoldAsMAD = tryAddToFoldList(FoldList, MI, OpNo, OpToFold, TII); 352 MI->untieRegOperand(OpNo); 355 MI->setDesc(TII->get(Opc)); 360 MI->setDesc(TII->get(AMDGPU::S_SETREG_IMM32_B32)); 361 appendFoldCandidate(FoldList, MI, OpNo, OpToFold); 368 if (isUseMIInFoldList(FoldList, MI)) 377 bool CanCommute = TII->findCommutedOpIndices(*MI, CommuteIdx0, CommuteIdx1); 391 if (CanCommute && (!MI->getOperand(CommuteIdx0).isReg() || 392 !MI->getOperand(CommuteIdx1).isReg())) 396 !TII->commuteInstruction(*MI, false, CommuteIdx0, CommuteIdx1)) 399 if (!TII->isOperandLegal(*MI, CommuteOpNo, OpToFold)) { 404 MachineRegisterInfo &MRI = MI->getParent()->getParent()->getRegInfo(); 409 MachineOperand &OtherOp = MI->getOperand(OtherIdx); 414 assert(MI->getOperand(1).isDef()); 417 unsigned MaybeCommutedOpc = MI->getOpcode(); 420 appendFoldCandidate(FoldList, MI, CommuteOpNo, OpToFold, true, Op32); 424 TII->commuteInstruction(*MI, false, CommuteIdx0, CommuteIdx1); 428 appendFoldCandidate(FoldList, MI, CommuteOpNo, OpToFold, true); 432 appendFoldCandidate(FoldList, MI, OpNo, OpToFold);