Searched refs:GEP1 (Results 1 – 5 of 5) sorted by relevance
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | MergedLoadStoreMotion.cpp | 236 auto *GEP1 = dyn_cast<GetElementPtrInst>(S1->getPointerOperand()); in canSinkStoresAndGEPs() local 237 return GEP0 && GEP1 && GEP0->isIdenticalTo(GEP1) && GEP0->hasOneUse() && in canSinkStoresAndGEPs() 238 (GEP0->getParent() == S0->getParent()) && GEP1->hasOneUse() && in canSinkStoresAndGEPs() 239 (GEP1->getParent() == S1->getParent()); in canSinkStoresAndGEPs() 282 auto *GEP1 = cast<GetElementPtrInst>(Ptr1); in sinkStoresAndGEPs() local 285 GEPNew->applyMergedLocation(GEP0->getDebugLoc(), GEP1->getDebugLoc()); in sinkStoresAndGEPs() 289 GEP1->replaceAllUsesWith(GEPNew); in sinkStoresAndGEPs() 290 GEP1->eraseFromParent(); in sinkStoresAndGEPs()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Value.cpp | 1069 const GEPOperator *GEP1 = dyn_cast<GEPOperator>(Ptr1); in getPointerOffsetFrom() local 1077 if (!GEP1 || !GEP2 || GEP1->getOperand(0) != GEP2->getOperand(0) || in getPointerOffsetFrom() 1078 GEP1->getSourceElementType() != GEP2->getSourceElementType()) in getPointerOffsetFrom() 1083 for (; Idx != GEP1->getNumOperands() && Idx != GEP2->getNumOperands(); ++Idx) in getPointerOffsetFrom() 1084 if (GEP1->getOperand(Idx) != GEP2->getOperand(Idx)) in getPointerOffsetFrom() 1087 auto IOffset1 = getOffsetFromIndex(GEP1, Idx, DL); in getPointerOffsetFrom()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | BasicAliasAnalysis.cpp | 1079 const GEPOperator *GEP1, LocationSize V1Size, in aliasGEP() argument 1102 DecomposedGEP DecompGEP1 = DecomposeGEPExpression(GEP1, DL, &AC, DT); in aliasGEP() 1106 if (DecompGEP1.Base == GEP1 && DecompGEP2.Base == V2) in aliasGEP()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 2556 static GEPNoWrapFlags getMergedGEPNoWrapFlags(GEPOperator &GEP1, in getMergedGEPNoWrapFlags() argument 2558 return GEP1.getNoWrapFlags().intersectForOffsetAdd(GEP2.getNoWrapFlags()); in getMergedGEPNoWrapFlags()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 5556 auto *GEP1 = dyn_cast<GetElementPtrInst>(Ptr1); in arePointersCompatible() local 5558 return (!GEP1 || GEP1->getNumOperands() == 2) && in arePointersCompatible() 5560 (((!GEP1 || isConstant(GEP1->getOperand(1))) && in arePointersCompatible() 5563 (GEP1 && GEP2 && in arePointersCompatible() 5564 getSameOpcode({GEP1->getOperand(1), GEP2->getOperand(1)}, TLI))); in arePointersCompatible()
|