Lines Matching defs:SrcAlloca
724 if (auto *SrcAlloca = dyn_cast<AllocaInst>(LI->getPointerOperand())) {
725 if (performStackMoveOptzn(LI, SI, DestAlloca, SrcAlloca,
1486 AllocaInst *SrcAlloca, TypeSize Size,
1492 if (SrcAlloca->getAddressSpace() != DestAlloca->getAddressSpace()) {
1499 std::optional<TypeSize> SrcSize = SrcAlloca->getAllocationSize(DL);
1510 if (!SrcAlloca->isStaticAlloca() || !DestAlloca->isStaticAlloca())
1541 // If any use that isn't dominated by SrcAlloca exists, we move src
1543 if (!DT->dominates(SrcAlloca, UI))
1637 MemoryLocation SrcLoc(SrcAlloca, LocationSize::precise(Size));
1652 if (!CaptureTrackingWithModRef(SrcAlloca, SrcModRefCallback))
1655 // We can do the transformation. First, move the SrcAlloca to the start of the
1658 SrcAlloca->moveBefore(*SrcAlloca->getParent(),
1659 SrcAlloca->getParent()->getFirstInsertionPt());
1661 SrcAlloca->setAlignment(
1662 std::max(SrcAlloca->getAlign(), DestAlloca->getAlign()));
1665 DestAlloca->replaceAllUsesWith(SrcAlloca);
1669 SrcAlloca->dropUnknownNonDebugMetadata();
1820 auto *SrcAlloca = dyn_cast<AllocaInst>(M->getSource());
1821 if (!SrcAlloca)
1826 if (performStackMoveOptzn(M, M, DestAlloca, SrcAlloca,