• Home
  • Raw
  • Download

Lines Matching refs:FirstMI

1219 static bool areCandidatesToMergeOrPair(MachineInstr &FirstMI, MachineInstr &MI,  in areCandidatesToMergeOrPair()  argument
1227 assert(!FirstMI.hasOrderedMemoryRef() && in areCandidatesToMergeOrPair()
1228 !TII->isLdStPairSuppressed(FirstMI) && in areCandidatesToMergeOrPair()
1231 unsigned OpcA = FirstMI.getOpcode(); in areCandidatesToMergeOrPair()
1267 canRenameUpToDef(MachineInstr &FirstMI, LiveRegUnits &UsedInBetween, in canRenameUpToDef() argument
1270 if (!FirstMI.mayStore()) in canRenameUpToDef()
1275 auto *RegClass = TRI->getMinimalPhysRegClass(getLdStRegOp(FirstMI).getReg()); in canRenameUpToDef()
1276 MachineFunction &MF = *FirstMI.getParent()->getParent(); in canRenameUpToDef()
1280 auto RegToRename = getLdStRegOp(FirstMI).getReg(); in canRenameUpToDef()
1282 if (!getLdStRegOp(FirstMI).isKill() && in canRenameUpToDef()
1283 !any_of(FirstMI.operands(), in canRenameUpToDef()
1289 LLVM_DEBUG(dbgs() << " Operand not killed at " << FirstMI << "\n"); in canRenameUpToDef()
1379 if (!forAllMIsUntilDef(FirstMI, RegToRename, TRI, LdStLimit, CheckMIs)) in canRenameUpToDef()
1395 MachineInstr &FirstMI, MachineInstr &MI, LiveRegUnits &DefinedInBB, in tryToFindRegisterToRename() argument
1399 auto &MF = *FirstMI.getParent()->getParent(); in tryToFindRegisterToRename()
1421 auto *RegClass = TRI->getMinimalPhysRegClass(getLdStRegOp(FirstMI).getReg()); in tryToFindRegisterToRename()
1446 MachineInstr &FirstMI = *I; in findMatchingInsn() local
1449 bool MayLoad = FirstMI.mayLoad(); in findMatchingInsn()
1450 bool IsUnscaled = TII->isUnscaledLdSt(FirstMI); in findMatchingInsn()
1451 Register Reg = getLdStRegOp(FirstMI).getReg(); in findMatchingInsn()
1452 Register BaseReg = getLdStBaseOp(FirstMI).getReg(); in findMatchingInsn()
1453 int Offset = getLdStOffsetOp(FirstMI).getImm(); in findMatchingInsn()
1454 int OffsetStride = IsUnscaled ? TII->getMemScale(FirstMI) : 1; in findMatchingInsn()
1455 bool IsPromotableZeroStore = isPromotableZeroStoreInst(FirstMI); in findMatchingInsn()
1487 if (areCandidatesToMergeOrPair(FirstMI, MI, Flags, TII) && in findMatchingInsn()
1595 !UsedRegUnits.available(getLdStRegOp(FirstMI).getReg())) && in findMatchingInsn()
1596 !mayAlias(FirstMI, MemInsns, AA)) { in findMatchingInsn()
1598 if (ModifiedRegUnits.available(getLdStRegOp(FirstMI).getReg())) { in findMatchingInsn()
1606 MaybeCanRename = {canRenameUpToDef(FirstMI, UsedInBetween, in findMatchingInsn()
1611 FirstMI, MI, DefinedInBB, UsedInBetween, RequiredClasses, in findMatchingInsn()