Lines Matching refs:MemSet
1138 MemSetInst *MemSet) { in processMemSetMemCpyDependence() argument
1140 if (MemSet->getDest() != MemCpy->getDest()) in processMemSetMemCpyDependence()
1155 if (accessedBetween(*AA, MemoryLocation::getForDest(MemSet), in processMemSetMemCpyDependence()
1156 MSSA->getMemoryAccess(MemSet), in processMemSetMemCpyDependence()
1164 MemoryLocation::getForDest(MemSet), false, MemCpy->getIterator(), in processMemSetMemCpyDependence()
1166 if (DstDepInfo.getInst() != MemSet) in processMemSetMemCpyDependence()
1172 Value *DestSize = MemSet->getLength(); in processMemSetMemCpyDependence()
1175 if (mayBeVisibleThroughUnwinding(Dest, MemSet, MemCpy)) in processMemSetMemCpyDependence()
1183 std::max(MemSet->getDestAlignment(), MemCpy->getDestAlignment()); in processMemSetMemCpyDependence()
1206 MemSet->getOperand(1), MemsetLen, MaybeAlign(Align)); in processMemSetMemCpyDependence()
1221 eraseInstruction(MemSet); in processMemSetMemCpyDependence()
1273 MemSetInst *MemSet) { in performMemCpyToMemSetOptzn() argument
1276 if (!AA->isMustAlias(MemSet->getRawDest(), MemCpy->getRawSource())) in performMemCpyToMemSetOptzn()
1280 ConstantInt *MemSetSize = dyn_cast<ConstantInt>(MemSet->getLength()); in performMemCpyToMemSetOptzn()
1295 MemoryUseOrDef *MemSetAccess = MSSA->getMemoryAccess(MemSet); in performMemCpyToMemSetOptzn()
1303 MemCpyLoc, true, MemSet->getIterator(), MemSet->getParent()); in performMemCpyToMemSetOptzn()
1315 Builder.CreateMemSet(MemCpy->getRawDest(), MemSet->getOperand(1), in performMemCpyToMemSetOptzn()