Lines Matching refs:Def
501 static bool canDefBePartOfLOH(const MachineInstr *Def) { in canDefBePartOfLOH() argument
502 unsigned Opc = Def->getOpcode(); in canDefBePartOfLOH()
511 switch (Def->getOperand(2).getType()) { in canDefBePartOfLOH()
522 switch (Def->getOperand(2).getType()) { in canDefBePartOfLOH()
578 const MachineInstr *Def = DefsIt.first; in reachedUsesToDefs() local
582 if ((ADRPMode && Def->getOpcode() != AArch64::ADRP) || in reachedUsesToDefs()
583 (!ADRPMode && !canDefBePartOfLOH(Def)) || in reachedUsesToDefs()
701 const MachineInstr *Def = *UseToDefs.find(Instr)->second.begin(); in isCandidate() local
702 if (Def->getOpcode() != AArch64::ADRP) { in isCandidate()
709 if (!MDT->dominates(Def, Instr)) in isCandidate()
712 if (UseToDefs.find(Def) == in isCandidate()
716 UseToDefs.find(Def)->second.empty()) in isCandidate()
718 Instr = Def; in isCandidate()
719 Def = *UseToDefs.find(Def)->second.begin(); in isCandidate()
725 if (Def->getOpcode() == AArch64::ADRP) in isCandidate()
726 return MDT->dominates(Def, Instr); in isCandidate()
747 const MachineInstr &Def = **It->second.begin(); in registerADRCandidate() local
748 if (Def.getOpcode() != AArch64::ADRP) in registerADRCandidate()
753 RegToId.find(Def.getOperand(0).getReg())->second, Def); in registerADRCandidate()
759 assert((!InvolvedInLOHs || InvolvedInLOHs->insert(&Def)) && in registerADRCandidate()
763 DEBUG(dbgs() << "Record AdrpAdd\n" << Def << '\n' << Use << '\n'); in registerADRCandidate()
767 {&Def, &Use}); in registerADRCandidate()
827 const MachineInstr *Def = *UseToDefs.find(Candidate)->second.begin(); in computeOthers() local
829 const MachineInstr *L1 = Def; in computeOthers()
831 unsigned ImmediateDefOpc = Def->getOpcode(); in computeOthers()
832 if (Def->getOpcode() != AArch64::ADRP) { in computeOthers()
836 RegToId.find(Def->getOperand(0).getReg())->second, *Def); in computeOthers()
852 PotentialADROpportunities.insert(Def); in computeOthers()
855 L2 = Def; in computeOthers()
856 Def = *UseToDefs.find(Def)->second.begin(); in computeOthers()
857 L1 = Def; in computeOthers()
864 RegToId.find(Def->getOperand(0).getReg())->second, *Def); in computeOthers()