Lines Matching refs:GEP
291 auto *GEP = dyn_cast<GetElementPtrInst>(Ptr->stripPointerCasts()); in calculateVectorIndex() local
292 if (!GEP) in calculateVectorIndex()
295 auto I = GEPIdx.find(GEP); in calculateVectorIndex()
300 static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca, in GEPToVectorIndex() argument
304 unsigned BW = DL.getIndexTypeSizeInBits(GEP->getType()); in GEPToVectorIndex()
307 if (GEP->getPointerOperand()->stripPointerCasts() != Alloca || in GEPToVectorIndex()
308 !GEP->collectOffset(DL, BW, VarOffsets, ConstOffset)) in GEPToVectorIndex()
330 return ConstantInt::get(GEP->getContext(), Quot); in GEPToVectorIndex()
731 if (auto *GEP = dyn_cast<GetElementPtrInst>(Inst)) { in tryPromoteAllocaToVector() local
734 Value *Index = GEPToVectorIndex(GEP, &Alloca, VecEltTy, *DL); in tryPromoteAllocaToVector()
738 GEPVectorIdx[GEP] = Index; in tryPromoteAllocaToVector()
767 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Ptr); in tryPromoteAllocaToVector() local
768 if (Ptr != &Alloca && !GEPVectorIdx.count(GEP)) in tryPromoteAllocaToVector()
1133 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(UseInst)) { in collectUsesWithPtrTypes() local
1136 if (!GEP->isInBounds()) in collectUsesWithPtrTypes()