• Home
  • Raw
  • Download

Lines Matching refs:MemCpy

1137 bool MemCpyOptPass::processMemSetMemCpyDependence(MemCpyInst *MemCpy,  in processMemSetMemCpyDependence()  argument
1140 if (MemSet->getDest() != MemCpy->getDest()) in processMemSetMemCpyDependence()
1145 if (!AA->isNoAlias(MemoryLocation(MemCpy->getSource(), in processMemSetMemCpyDependence()
1147 MemoryLocation(MemCpy->getDest(), in processMemSetMemCpyDependence()
1157 MSSA->getMemoryAccess(MemCpy))) { in processMemSetMemCpyDependence()
1164 MemoryLocation::getForDest(MemSet), false, MemCpy->getIterator(), in processMemSetMemCpyDependence()
1165 MemCpy->getParent()); in processMemSetMemCpyDependence()
1171 Value *Dest = MemCpy->getRawDest(); in processMemSetMemCpyDependence()
1173 Value *SrcSize = MemCpy->getLength(); in processMemSetMemCpyDependence()
1175 if (mayBeVisibleThroughUnwinding(Dest, MemSet, MemCpy)) in processMemSetMemCpyDependence()
1183 std::max(MemSet->getDestAlignment(), MemCpy->getDestAlignment()); in processMemSetMemCpyDependence()
1188 IRBuilder<> Builder(MemCpy); in processMemSetMemCpyDependence()
1209 assert(isa<MemoryDef>(MSSAU->getMemorySSA()->getMemoryAccess(MemCpy)) && in processMemSetMemCpyDependence()
1215 cast<MemoryDef>(MSSAU->getMemorySSA()->getMemoryAccess(MemCpy)); in processMemSetMemCpyDependence()
1272 bool MemCpyOptPass::performMemCpyToMemSetOptzn(MemCpyInst *MemCpy, in performMemCpyToMemSetOptzn() argument
1276 if (!AA->isMustAlias(MemSet->getRawDest(), MemCpy->getRawSource())) in performMemCpyToMemSetOptzn()
1286 ConstantInt *CopySize = cast<ConstantInt>(MemCpy->getLength()); in performMemCpyToMemSetOptzn()
1292 MemoryLocation MemCpyLoc = MemoryLocation::getForSource(MemCpy); in performMemCpyToMemSetOptzn()
1299 if (hasUndefContentsMSSA(MSSA, AA, MemCpy->getSource(), MD, CopySize)) in performMemCpyToMemSetOptzn()
1313 IRBuilder<> Builder(MemCpy); in performMemCpyToMemSetOptzn()
1315 Builder.CreateMemSet(MemCpy->getRawDest(), MemSet->getOperand(1), in performMemCpyToMemSetOptzn()
1316 CopySize, MaybeAlign(MemCpy->getDestAlignment())); in performMemCpyToMemSetOptzn()
1319 cast<MemoryDef>(MSSAU->getMemorySSA()->getMemoryAccess(MemCpy)); in performMemCpyToMemSetOptzn()