Lines Matching defs:UseInst

1148   /// Returns true if \p UseInst completely overwrites \p DefLoc
1151 Instruction *UseInst) {
1152 // UseInst has a MemoryDef associated in MemorySSA. It's possible for a
1155 if (!UseInst->mayWriteToMemory())
1158 if (auto *CB = dyn_cast<CallBase>(UseInst))
1163 if (auto CC = getLocForWrite(UseInst))
1164 return isOverwrite(UseInst, DefInst, *CC, DefLoc, InstWriteOffset,
1197 Instruction *UseInst = cast<MemoryUseOrDef>(UseAccess)->getMemoryInst();
1198 if (isReadClobber(DefLoc, UseInst)) {
1199 LLVM_DEBUG(dbgs() << " ... hit read clobber " << *UseInst << ".\n");
1264 bool isReadClobber(const MemoryLocation &DefLoc, Instruction *UseInst) {
1265 if (isNoopIntrinsic(UseInst))
1270 if (auto SI = dyn_cast<StoreInst>(UseInst))
1273 if (!UseInst->mayReadFromMemory())
1276 if (auto *CB = dyn_cast<CallBase>(UseInst))
1280 return isRefSet(BatchAA.getModRefInfo(UseInst, DefLoc));
1536 Instruction *UseInst = cast<MemoryUseOrDef>(UseAccess)->getMemoryInst();
1537 LLVM_DEBUG(dbgs() << " (" << *UseInst << ")\n");
1539 if (any_of(KillingDefs, [this, UseInst](Instruction *KI) {
1540 return DT.dominates(KI, UseInst);
1548 if (isMemTerminator(MaybeDeadLoc, MaybeDeadI, UseInst)) {
1561 if (UseInst->mayThrow() && !isInvisibleToCallerOnUnwind(KillingUndObj)) {
1568 if (isReadClobber(MaybeDeadLoc, UseInst)) {
1601 if (isCompleteOverwrite(MaybeDeadLoc, MaybeDeadI, UseInst)) {
1602 BasicBlock *MaybeKillingBlock = UseInst->getParent();
1607 << " ... found killing def " << *UseInst << "\n");
1608 KillingDefs.insert(UseInst);
1612 << " ... found preceeding def " << *UseInst << "\n");