Lines Matching defs:DefInst
823 DefInst = MemDef->getMemoryInst();
829 Instruction *DefInst;
838 DefInst = MemDef->getMemoryInst();
843 Instruction *DefInst;
1246 /// (stored by \p DefInst).
1247 bool isCompleteOverwrite(const MemoryLocation &DefLoc, Instruction *DefInst,
1261 return isOverwrite(UseInst, DefInst, *CC, DefLoc, InstWriteOffset,
2195 Instruction *DefInst = Def->getMemoryInst();
2196 auto MaybeDefLoc = getLocForWrite(DefInst);
2197 if (!MaybeDefLoc || !isRemovable(DefInst))
2213 if (DefInst->isIdenticalTo(UpperInst))
2216 if (auto *SI = dyn_cast<StoreInst>(DefInst)) {
2223 auto OR = isOverwrite(UpperInst, DefInst, *UpperLoc, *MaybeDefLoc,
2233 if (!IsRedundantStore() || isReadClobber(*MaybeDefLoc, DefInst))
2235 LLVM_DEBUG(dbgs() << "DSE: Remove No-Op Store:\n DEAD: " << *DefInst
2237 deleteDeadInstruction(DefInst);
2256 // any changes were made, and whether `KillingLocWrapper.DefInst` was deleted.
2375 isMemTerminatorInst(KillingLocWrapper.DefInst), PartialLimit,
2413 LLVM_DEBUG(dbgs() << " (" << *DeadLocWrapper.DefInst << ")\n");
2419 if (isMemTerminatorInst(KillingLocWrapper.DefInst)) {
2423 << *DeadLocWrapper.DefInst << "\n KILLER: "
2424 << *KillingLocWrapper.DefInst << '\n');
2425 deleteDeadInstruction(DeadLocWrapper.DefInst, &Deleted);
2433 isOverwrite(KillingLocWrapper.DefInst, DeadLocWrapper.DefInst,
2437 auto &IOL = IOLs[DeadLocWrapper.DefInst->getParent()];
2440 DeadLocWrapper.DefInst, IOL);
2443 auto *DeadSI = dyn_cast<StoreInst>(DeadLocWrapper.DefInst);
2444 auto *KillingSI = dyn_cast<StoreInst>(KillingLocWrapper.DefInst);
2471 << *DeadLocWrapper.DefInst << "\n KILLER: "
2472 << *KillingLocWrapper.DefInst << '\n');
2473 deleteDeadInstruction(DeadLocWrapper.DefInst, &Deleted);
2489 << *KillingDefWrapper.DefInst << "\n");
2497 << *KillingLocWrapper.DefInst << ")\n");
2505 << *KillingLocWrapper.DefInst << '\n');
2506 deleteDeadInstruction(KillingLocWrapper.DefInst);
2516 << " DEAD: " << *KillingLocWrapper.DefInst << '\n');
2517 deleteDeadInstruction(KillingLocWrapper.DefInst);