Lines Matching refs:Alloca

103   bool binaryOpIsDerivedFromSameAlloca(Value *Alloca, Value *Val,
252 static void collectAllocaUses(AllocaInst &Alloca, in collectAllocaUses() argument
254 SmallVector<Instruction *, 4> WorkList({&Alloca}); in collectAllocaUses()
270 for (auto *Alloca : Allocas) { in sortAllocasToPromote() local
271 LLVM_DEBUG(dbgs() << "Scoring: " << *Alloca << "\n"); in sortAllocasToPromote()
272 unsigned &Score = Scores[Alloca]; in sortAllocasToPromote()
275 collectAllocaUses(*Alloca, Uses); in sortAllocasToPromote()
400 static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca, in GEPToVectorIndex() argument
407 if (GEP->getPointerOperand()->stripPointerCasts() != Alloca || in GEPToVectorIndex()
727 bool AMDGPUPromoteAllocaImpl::tryPromoteAllocaToVector(AllocaInst &Alloca) { in tryPromoteAllocaToVector() argument
728 LLVM_DEBUG(dbgs() << "Trying to promote to vector: " << Alloca << '\n'); in tryPromoteAllocaToVector()
735 Type *AllocaTy = Alloca.getAllocatedType(); in tryPromoteAllocaToVector()
773 collectAllocaUses(Alloca, Uses); in tryPromoteAllocaToVector()
802 if (Ptr == &Alloca && DL->getTypeStoreSize(Alloca.getAllocatedType()) == in tryPromoteAllocaToVector()
818 Value *Index = GEPToVectorIndex(GEP, &Alloca, VecEltTy, *DL); in tryPromoteAllocaToVector()
828 MSI && isSupportedMemset(MSI, &Alloca, *DL)) { in tryPromoteAllocaToVector()
850 if (Ptr != &Alloca && !GEPVectorIdx.count(GEP)) in tryPromoteAllocaToVector()
919 Updater.AddAvailableValue(Alloca.getParent(), UndefValue::get(VectorTy)); in tryPromoteAllocaToVector()
965 assert(Alloca.use_empty()); in tryPromoteAllocaToVector()
966 Alloca.eraseFromParent(); in tryPromoteAllocaToVector()