Lines Matching refs:Alloca
94 bool binaryOpIsDerivedFromSameAlloca(Value *Alloca, Value *Val,
300 static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca, in GEPToVectorIndex() argument
307 if (GEP->getPointerOperand()->stripPointerCasts() != Alloca || in GEPToVectorIndex()
623 bool AMDGPUPromoteAllocaImpl::tryPromoteAllocaToVector(AllocaInst &Alloca) { in tryPromoteAllocaToVector() argument
624 LLVM_DEBUG(dbgs() << "Trying to promote to vector: " << Alloca << '\n'); in tryPromoteAllocaToVector()
631 Type *AllocaTy = Alloca.getAllocatedType(); in tryPromoteAllocaToVector()
679 for (Use &U : Alloca.uses()) in tryPromoteAllocaToVector()
710 if (Ptr == &Alloca && DL->getTypeStoreSize(Alloca.getAllocatedType()) == in tryPromoteAllocaToVector()
734 Value *Index = GEPToVectorIndex(GEP, &Alloca, VecEltTy, *DL); in tryPromoteAllocaToVector()
746 MSI && isSupportedMemset(MSI, &Alloca, *DL)) { in tryPromoteAllocaToVector()
768 if (Ptr != &Alloca && !GEPVectorIdx.count(GEP)) in tryPromoteAllocaToVector()
837 Updater.AddAvailableValue(Alloca.getParent(), UndefValue::get(VectorTy)); in tryPromoteAllocaToVector()
883 assert(Alloca.use_empty()); in tryPromoteAllocaToVector()
884 Alloca.eraseFromParent(); in tryPromoteAllocaToVector()