Lines Matching refs:MemoryDef

700 bool canSkipDef(MemoryDef *D, bool DefVisibleToCaller) {  in canSkipDef()
754 SmallVector<MemoryDef *, 64> MemDefs;
803 auto *MD = dyn_cast_or_null<MemoryDef>(MA); in DSEState()
1051 bool isWriteAtEndOfFunction(MemoryDef *Def) { in isWriteAtEndOfFunction()
1093 if (MemoryDef *UseDef = dyn_cast<MemoryDef>(UseAccess)) in isWriteAtEndOfFunction()
1216 getDomMemoryDef(MemoryDef *KillingDef, MemoryAccess *StartAccess, in getDomMemoryDef()
1240 for (;; Current = cast<MemoryDef>(Current)->getDefiningAccess()) { in getDomMemoryDef()
1278 MemoryDef *CurrentDef = cast<MemoryDef>(Current); in getDomMemoryDef()
1390 Instruction *MaybeDeadI = cast<MemoryDef>(MaybeDeadAccess)->getMemoryInst(); in getDomMemoryDef()
1491 if (MemoryDef *UseDef = dyn_cast<MemoryDef>(UseAccess)) { in getDomMemoryDef()
1603 if (MemoryDef *MD = dyn_cast<MemoryDef>(MA)) { in deleteDeadInstruction()
1688 for (MemoryDef *Def : llvm::reverse(MemDefs)) { in eliminateDeadWritesAtEndOfFunction()
1721 bool tryFoldIntoCalloc(MemoryDef *Def, const Value *DefUO) { in tryFoldIntoCalloc()
1785 cast<MemoryDef>(Updater.getMemorySSA()->getMemoryAccess(Malloc)); in tryFoldIntoCalloc()
1789 auto *NewAccessMD = cast<MemoryDef>(NewAccess); in tryFoldIntoCalloc()
1799 bool storeIsNoop(MemoryDef *Def, const Value *DefUO) { in storeIsNoop()
1858 assert(isa<MemoryDef>(Current) && in storeIsNoop()
1909 MemoryDef *UpperDef; in eliminateRedundantStoresOfExistingValues()
1914 UpperDef = dyn_cast<MemoryDef>(Def->getOptimized()); in eliminateRedundantStoresOfExistingValues()
1916 UpperDef = dyn_cast<MemoryDef>(Def->getDefiningAccess()); in eliminateRedundantStoresOfExistingValues()
1963 MemoryDef *KillingDef = State.MemDefs[I]; in eliminateDeadStores()
2028 auto *DeadDefAccess = cast<MemoryDef>(DeadAccess); in eliminateDeadStores()