Lines Matching refs:AllocaInst
64 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable()
130 void init(AllocaInst *AI) { in init()
238 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca()
310 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction()
311 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); in isInterestingInstruction()
345 std::vector<AllocaInst *> Allocas;
356 DenseMap<AllocaInst *, unsigned> AllocaLookup;
395 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT, in PromoteMem2Reg()
418 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
465 static void removeIntrinsicUsers(AllocaInst *AI) { in removeIntrinsicUsers()
508 rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, LargeBlockInfo &LBI, in rewriteSingleStoreAlloca()
618 promoteSingleBlockAlloca(AllocaInst *AI, const AllocaInfo &Info, in promoteSingleBlockAlloca()
733 AllocaInst *AI = Allocas[AllocaNum]; in run()
978 AllocaInst *AI, AllocaInfo &Info, in ComputeLiveInBlocks()
1146 AllocaInst *Src = dyn_cast<AllocaInst>(LI->getPointerOperand()); in RenamePass()
1150 DenseMap<AllocaInst *, unsigned>::iterator AI = AllocaLookup.find(Src); in RenamePass()
1163 AllocaInst *Dest = dyn_cast<AllocaInst>(SI->getPointerOperand()); in RenamePass()
1167 DenseMap<AllocaInst *, unsigned>::iterator ai = AllocaLookup.find(Dest); in RenamePass()
1211 void llvm::PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT, in PromoteMemToReg()