Lines Matching refs:MemSet
408 if (auto *MemSet = dyn_cast<MemSetInst>(SecondI)) in memoryIsNotModifiedBetween() local
409 MemLoc = MemoryLocation::getForDest(MemSet); in memoryIsNotModifiedBetween()
1723 MemSetInst *MemSet = dyn_cast<MemSetInst>(DefI); in tryFoldIntoCalloc() local
1724 if (!MemSet) in tryFoldIntoCalloc()
1727 Constant *StoredConstant = dyn_cast<Constant>(MemSet->getValue()); in tryFoldIntoCalloc()
1770 if (Malloc->getOperand(0) != MemSet->getLength()) in tryFoldIntoCalloc()
1772 if (!shouldCreateCalloc(Malloc, MemSet) || in tryFoldIntoCalloc()
1773 !DT.dominates(Malloc, MemSet) || in tryFoldIntoCalloc()
1774 !memoryIsNotModifiedBetween(Malloc, MemSet, BatchAA, DL, &DT)) in tryFoldIntoCalloc()
1802 MemSetInst *MemSet = dyn_cast<MemSetInst>(DefI); in storeIsNoop() local
1806 else if (MemSet) in storeIsNoop()
1807 StoredConstant = dyn_cast<Constant>(MemSet->getValue()); in storeIsNoop()