Searched refs:PtrMI (Results 1 – 2 of 2) sorted by relevance
1497 const MachineInstr *PtrMI = MRI.getUniqueVRegDef(Load.getOperand(1).getReg()); in getAddrModeInfo() local1499 assert(PtrMI); in getAddrModeInfo()1501 if (PtrMI->getOpcode() != TargetOpcode::G_PTR_ADD) in getAddrModeInfo()1504 GEPInfo GEPInfo(*PtrMI); in getAddrModeInfo()1507 const MachineOperand &GEPOp = PtrMI->getOperand(i); in getAddrModeInfo()1525 getAddrModeInfo(*PtrMI, MRI, AddrInfo); in getAddrModeInfo()
1861 auto *PtrMI = MRI.getVRegDef(PtrReg); in select() local1864 if (PtrMI->getOpcode() == TargetOpcode::G_PTR_ADD) { in select()1865 if (auto COff = getConstantVRegVal(PtrMI->getOperand(2).getReg(), MRI)) { in select()1870 Register Ptr2Reg = PtrMI->getOperand(1).getReg(); in select()1872 PtrMI = MRI.getVRegDef(Ptr2Reg); in select()1880 if (!Offset && PtrMI->getOpcode() == TargetOpcode::G_FRAME_INDEX) in select()1881 I.getOperand(1).ChangeToFrameIndex(PtrMI->getOperand(1).getIndex()); in select()