Lines Matching refs:UseInst
1139 Instruction *UseInst) { in isCompleteOverwrite()
1143 if (!UseInst->mayWriteToMemory()) in isCompleteOverwrite()
1146 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isCompleteOverwrite()
1151 if (auto CC = getLocForWrite(UseInst)) in isCompleteOverwrite()
1152 return isOverwrite(UseInst, DefInst, *CC, DefLoc, InstWriteOffset, in isCompleteOverwrite()
1197 Instruction *UseInst = cast<MemoryUseOrDef>(UseAccess)->getMemoryInst(); in isWriteAtEndOfFunction() local
1198 if (isReadClobber(*MaybeLoc, UseInst)) { in isWriteAtEndOfFunction()
1199 LLVM_DEBUG(dbgs() << " ... hit read clobber " << *UseInst << ".\n"); in isWriteAtEndOfFunction()
1264 bool isReadClobber(const MemoryLocation &DefLoc, Instruction *UseInst) { in isReadClobber()
1265 if (isNoopIntrinsic(UseInst)) in isReadClobber()
1270 if (auto SI = dyn_cast<StoreInst>(UseInst)) in isReadClobber()
1273 if (!UseInst->mayReadFromMemory()) in isReadClobber()
1276 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isReadClobber()
1280 return isRefSet(BatchAA.getModRefInfo(UseInst, DefLoc)); in isReadClobber()
1539 Instruction *UseInst = cast<MemoryUseOrDef>(UseAccess)->getMemoryInst(); in getDomMemoryDef() local
1540 LLVM_DEBUG(dbgs() << " (" << *UseInst << ")\n"); in getDomMemoryDef()
1542 if (any_of(KillingDefs, [this, UseInst](Instruction *KI) { in getDomMemoryDef()
1543 return DT.dominates(KI, UseInst); in getDomMemoryDef()
1551 if (isMemTerminator(MaybeDeadLoc, MaybeDeadI, UseInst)) { in getDomMemoryDef()
1564 if (UseInst->mayThrow() && !isInvisibleToCallerOnUnwind(KillingUndObj)) { in getDomMemoryDef()
1571 if (isReadClobber(MaybeDeadLoc, UseInst)) { in getDomMemoryDef()
1604 if (isCompleteOverwrite(MaybeDeadLoc, MaybeDeadI, UseInst)) { in getDomMemoryDef()
1605 BasicBlock *MaybeKillingBlock = UseInst->getParent(); in getDomMemoryDef()
1610 << " ... found killing def " << *UseInst << "\n"); in getDomMemoryDef()
1611 KillingDefs.insert(UseInst); in getDomMemoryDef()
1615 << " ... found preceeding def " << *UseInst << "\n"); in getDomMemoryDef()