Lines Matching refs:UseInst

1032                            Instruction *UseInst) {  in isCompleteOverwrite()
1036 if (!UseInst->mayWriteToMemory()) in isCompleteOverwrite()
1039 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isCompleteOverwrite()
1044 if (auto CC = getLocForWrite(UseInst)) in isCompleteOverwrite()
1045 return isOverwrite(UseInst, DefInst, *CC, DefLoc, InstWriteOffset, in isCompleteOverwrite()
1087 Instruction *UseInst = cast<MemoryUseOrDef>(UseAccess)->getMemoryInst(); in isWriteAtEndOfFunction() local
1088 if (isReadClobber(*MaybeLoc, UseInst)) { in isWriteAtEndOfFunction()
1089 LLVM_DEBUG(dbgs() << " ... hit read clobber " << *UseInst << ".\n"); in isWriteAtEndOfFunction()
1154 bool isReadClobber(const MemoryLocation &DefLoc, Instruction *UseInst) { in isReadClobber()
1155 if (isNoopIntrinsic(UseInst)) in isReadClobber()
1160 if (auto SI = dyn_cast<StoreInst>(UseInst)) in isReadClobber()
1163 if (!UseInst->mayReadFromMemory()) in isReadClobber()
1166 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isReadClobber()
1170 return isRefSet(BatchAA.getModRefInfo(UseInst, DefLoc)); in isReadClobber()
1427 Instruction *UseInst = cast<MemoryUseOrDef>(UseAccess)->getMemoryInst(); in getDomMemoryDef() local
1428 LLVM_DEBUG(dbgs() << " (" << *UseInst << ")\n"); in getDomMemoryDef()
1430 if (any_of(KillingDefs, [this, UseInst](Instruction *KI) { in getDomMemoryDef()
1431 return DT.dominates(KI, UseInst); in getDomMemoryDef()
1439 if (isMemTerminator(MaybeDeadLoc, MaybeDeadI, UseInst)) { in getDomMemoryDef()
1452 if (UseInst->mayThrow() && !isInvisibleToCallerOnUnwind(KillingUndObj)) { in getDomMemoryDef()
1459 if (isReadClobber(MaybeDeadLoc, UseInst)) { in getDomMemoryDef()
1492 if (isCompleteOverwrite(MaybeDeadLoc, MaybeDeadI, UseInst)) { in getDomMemoryDef()
1493 BasicBlock *MaybeKillingBlock = UseInst->getParent(); in getDomMemoryDef()
1498 << " ... found killing def " << *UseInst << "\n"); in getDomMemoryDef()
1499 KillingDefs.insert(UseInst); in getDomMemoryDef()
1503 << " ... found preceeding def " << *UseInst << "\n"); in getDomMemoryDef()