Lines Matching refs:NewMI
2503 MachineInstr *NewMI = std::prev(I); in reMaterialize() local
2504 NewMI->substituteRegister(Orig->getOperand(0).getReg(), DestReg, SubIdx, TRI); in reMaterialize()
2700 MachineInstr *NewMI = MIB; in convertToThreeAddressWithLEA() local
2708 LV->getVarInfo(leaInReg).Kills.push_back(NewMI); in convertToThreeAddressWithLEA()
2746 MachineInstr *NewMI = nullptr; in convertToThreeAddress() local
2767 NewMI = BuildMI(MF, MI->getDebugLoc(), get(X86::LEA64r)) in convertToThreeAddress()
2794 NewMI = MIB; in convertToThreeAddress()
2805 NewMI = BuildMI(MF, MI->getDebugLoc(), get(X86::LEA16r)) in convertToThreeAddress()
2828 NewMI = addOffset(MIB, 1); in convertToThreeAddress()
2836 NewMI = addOffset(BuildMI(MF, MI->getDebugLoc(), get(X86::LEA16r)) in convertToThreeAddress()
2858 NewMI = addOffset(MIB, -1); in convertToThreeAddress()
2867 NewMI = addOffset(BuildMI(MF, MI->getDebugLoc(), get(X86::LEA16r)) in convertToThreeAddress()
2903 NewMI = addRegReg(MIB, SrcReg, isKill, SrcReg2, isKill2); in convertToThreeAddress()
2906 NewMI->getOperand(1).setIsUndef(isUndef); in convertToThreeAddress()
2907 NewMI->getOperand(3).setIsUndef(isUndef2); in convertToThreeAddress()
2910 LV->replaceKillInstruction(SrcReg2, MI, NewMI); in convertToThreeAddress()
2921 NewMI = addRegReg(BuildMI(MF, MI->getDebugLoc(), get(X86::LEA16r)) in convertToThreeAddress()
2928 NewMI->getOperand(1).setIsUndef(isUndef); in convertToThreeAddress()
2929 NewMI->getOperand(3).setIsUndef(isUndef2); in convertToThreeAddress()
2932 LV->replaceKillInstruction(Src2, MI, NewMI); in convertToThreeAddress()
2940 NewMI = addOffset(BuildMI(MF, MI->getDebugLoc(), get(X86::LEA64r)) in convertToThreeAddress()
2964 NewMI = addOffset(MIB, MI->getOperand(2).getImm()); in convertToThreeAddress()
2975 NewMI = addOffset(BuildMI(MF, MI->getDebugLoc(), get(X86::LEA16r)) in convertToThreeAddress()
2981 if (!NewMI) return nullptr; in convertToThreeAddress()
2985 LV->replaceKillInstruction(Src.getReg(), MI, NewMI); in convertToThreeAddress()
2987 LV->replaceKillInstruction(Dest.getReg(), MI, NewMI); in convertToThreeAddress()
2990 MFI->insert(MBBI, NewMI); // Insert the new inst in convertToThreeAddress()
2991 return NewMI; in convertToThreeAddress()
3147 bool NewMI, in commuteInstructionImpl() argument
3169 if (NewMI) { in commuteInstructionImpl()
3172 NewMI = false; in commuteInstructionImpl()
3176 return TargetInstrInfo::commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstructionImpl()
3206 if (NewMI) { in commuteInstructionImpl()
3209 NewMI = false; in commuteInstructionImpl()
3212 return TargetInstrInfo::commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstructionImpl()
3221 if (NewMI) { in commuteInstructionImpl()
3224 NewMI = false; in commuteInstructionImpl()
3227 return TargetInstrInfo::commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstructionImpl()
3243 if (NewMI) { in commuteInstructionImpl()
3246 NewMI = false; in commuteInstructionImpl()
3248 return TargetInstrInfo::commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstructionImpl()
3271 if (NewMI) { in commuteInstructionImpl()
3274 NewMI = false; in commuteInstructionImpl()
3277 return TargetInstrInfo::commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstructionImpl()
3347 if (NewMI) { in commuteInstructionImpl()
3350 NewMI = false; in commuteInstructionImpl()
3360 if (NewMI) { in commuteInstructionImpl()
3363 NewMI = false; in commuteInstructionImpl()
3367 return TargetInstrInfo::commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstructionImpl()
5449 MachineInstr *NewMI = MF.CreateMachineInstr(TII.get(Opcode), in FuseTwoAddrInst() local
5451 MachineInstrBuilder MIB(MF, NewMI); in FuseTwoAddrInst()
5466 MBB->insert(InsertPt, NewMI); in FuseTwoAddrInst()
5477 MachineInstr *NewMI = MF.CreateMachineInstr(TII.get(Opcode), in FuseInst() local
5479 MachineInstrBuilder MIB(MF, NewMI); in FuseInst()
5492 MBB->insert(InsertPt, NewMI); in FuseInst()
5529 MachineInstr *NewMI = in foldMemoryOperandCustom() local
5531 NewMI->getOperand(NewMI->getNumOperands() - 1).setImm(NewImm); in foldMemoryOperandCustom()
5532 return NewMI; in foldMemoryOperandCustom()
5569 MachineInstr *NewMI = nullptr; in foldMemoryOperandImpl() local
5587 NewMI = MakeM0Inst(*this, X86::MOV32mi, MOs, InsertPt, MI); in foldMemoryOperandImpl()
5588 if (NewMI) in foldMemoryOperandImpl()
5589 return NewMI; in foldMemoryOperandImpl()
5632 NewMI = FuseTwoAddrInst(MF, Opcode, MOs, InsertPt, MI, *this); in foldMemoryOperandImpl()
5634 NewMI = FuseInst(MF, Opcode, OpNum, MOs, InsertPt, MI, *this); in foldMemoryOperandImpl()
5640 unsigned DstReg = NewMI->getOperand(0).getReg(); in foldMemoryOperandImpl()
5642 NewMI->getOperand(0).setReg(RI.getSubReg(DstReg, X86::sub_32bit)); in foldMemoryOperandImpl()
5644 NewMI->getOperand(0).setSubReg(X86::sub_32bit); in foldMemoryOperandImpl()
5646 return NewMI; in foldMemoryOperandImpl()
5683 NewMI = foldMemoryOperandImpl(MF, MI, CommuteOpIdx2, MOs, InsertPt, in foldMemoryOperandImpl()
5685 if (NewMI) in foldMemoryOperandImpl()
5686 return NewMI; in foldMemoryOperandImpl()