Lines Matching defs:DefInst
1149 /// (stored by \p DefInst).
1150 bool isCompleteOverwrite(const MemoryLocation &DefLoc, Instruction *DefInst,
1164 return isOverwrite(UseInst, DefInst, *CC, DefLoc, InstWriteOffset,
2087 Instruction *DefInst = Def->getMemoryInst();
2088 auto MaybeDefLoc = getLocForWrite(DefInst);
2089 if (!MaybeDefLoc || !isRemovable(DefInst))
2105 if (DefInst->isIdenticalTo(UpperInst))
2108 if (auto *SI = dyn_cast<StoreInst>(DefInst)) {
2115 auto OR = isOverwrite(UpperInst, DefInst, *UpperLoc, *MaybeDefLoc,
2125 if (!IsRedundantStore() || isReadClobber(*MaybeDefLoc, DefInst))
2127 LLVM_DEBUG(dbgs() << "DSE: Remove No-Op Store:\n DEAD: " << *DefInst
2129 deleteDeadInstruction(DefInst);