Lines Matching refs:LdSt
1143 bool CombinerHelper::isIndexedLoadStoreLegal(GLoadStore &LdSt) const { in isIndexedLoadStoreLegal()
1145 LLT PtrTy = MRI.getType(LdSt.getPointerReg()); in isIndexedLoadStoreLegal()
1146 LLT Ty = MRI.getType(LdSt.getReg(0)); in isIndexedLoadStoreLegal()
1147 LLT MemTy = LdSt.getMMO().getMemoryType(); in isIndexedLoadStoreLegal()
1151 unsigned IndexedOpc = getIndexedOpc(LdSt.getOpcode()); in isIndexedLoadStoreLegal()
1167 bool CombinerHelper::findPostIndexCandidate(GLoadStore &LdSt, Register &Addr, in findPostIndexCandidate() argument
1177 Register Ptr = LdSt.getPointerReg(); in findPostIndexCandidate()
1182 if (!isIndexedLoadStoreLegal(LdSt)) in findPostIndexCandidate()
1188 MachineInstr *StoredValDef = getDefIgnoringCopies(LdSt.getReg(0), MRI); in findPostIndexCandidate()
1209 !TLI.isIndexingLegal(LdSt, PtrAdd->getBaseReg(), Offset, in findPostIndexCandidate()
1216 if (!dominates(*OffsetDef, LdSt)) { in findPostIndexCandidate()
1231 if (BasePtrLdSt && BasePtrLdSt != &LdSt && in findPostIndexCandidate()
1232 dominates(LdSt, *BasePtrLdSt) && in findPostIndexCandidate()
1243 if (BaseUseUse.getParent() != LdSt.getParent()) in findPostIndexCandidate()
1250 if (!dominates(LdSt, BasePtrUse)) in findPostIndexCandidate()
1263 bool CombinerHelper::findPreIndexCandidate(GLoadStore &LdSt, Register &Addr, in findPreIndexCandidate() argument
1265 auto &MF = *LdSt.getParent()->getParent(); in findPreIndexCandidate()
1268 Addr = LdSt.getPointerReg(); in findPreIndexCandidate()
1274 !TLI.isIndexingLegal(LdSt, Base, Offset, /*IsPre*/ true, MRI)) in findPreIndexCandidate()
1277 if (!isIndexedLoadStoreLegal(LdSt)) in findPreIndexCandidate()
1284 if (auto *St = dyn_cast<GStore>(&LdSt)) { in findPreIndexCandidate()
1297 if (AddrUse.getParent() != LdSt.getParent()) in findPreIndexCandidate()
1304 if (!dominates(LdSt, AddrUse)) in findPreIndexCandidate()
1427 auto &LdSt = cast<GLoadStore>(MI); in matchCombineIndexedLoadStore() local
1429 if (LdSt.isAtomic()) in matchCombineIndexedLoadStore()
1432 MatchInfo.IsPre = findPreIndexCandidate(LdSt, MatchInfo.Addr, MatchInfo.Base, in matchCombineIndexedLoadStore()
1435 !findPostIndexCandidate(LdSt, MatchInfo.Addr, MatchInfo.Base, in matchCombineIndexedLoadStore()
1735 if (auto *LdSt = dyn_cast<GLoadStore>(&UseMI)) { in matchPtrAddImmedChain() local
1736 AccessTy = getTypeForLLT(MRI.getType(LdSt->getReg(0)), in matchPtrAddImmedChain()