Lines Matching defs:SrcAlloca
744 if (auto *SrcAlloca = dyn_cast<AllocaInst>(LI->getPointerOperand())) {
745 if (performStackMoveOptzn(LI, SI, DestAlloca, SrcAlloca,
1505 AllocaInst *SrcAlloca, TypeSize Size,
1511 if (SrcAlloca->getAddressSpace() != DestAlloca->getAddressSpace()) {
1518 std::optional<TypeSize> SrcSize = SrcAlloca->getAllocationSize(DL);
1529 if (!SrcAlloca->isStaticAlloca() || !DestAlloca->isStaticAlloca())
1560 // If any use that isn't dominated by SrcAlloca exists, we move src
1562 if (!DT->dominates(SrcAlloca, UI))
1656 MemoryLocation SrcLoc(SrcAlloca, LocationSize::precise(Size));
1671 if (!CaptureTrackingWithModRef(SrcAlloca, SrcModRefCallback))
1674 // We can do the transformation. First, move the SrcAlloca to the start of the
1677 SrcAlloca->moveBefore(*SrcAlloca->getParent(),
1678 SrcAlloca->getParent()->getFirstInsertionPt());
1680 SrcAlloca->setAlignment(
1681 std::max(SrcAlloca->getAlign(), DestAlloca->getAlign()));
1684 DestAlloca->replaceAllUsesWith(SrcAlloca);
1688 SrcAlloca->dropUnknownNonDebugMetadata();
1839 auto *SrcAlloca = dyn_cast<AllocaInst>(M->getSource());
1840 if (!SrcAlloca)
1845 if (performStackMoveOptzn(M, M, DestAlloca, SrcAlloca,