Searched refs:GEP1 (Results 1 – 6 of 6) sorted by relevance
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | MergedLoadStoreMotion.cpp | 235 auto *GEP1 = dyn_cast<GetElementPtrInst>(S1->getPointerOperand()); in canSinkStoresAndGEPs() local 236 return GEP0 && GEP1 && GEP0->isIdenticalTo(GEP1) && GEP0->hasOneUse() && in canSinkStoresAndGEPs() 237 (GEP0->getParent() == S0->getParent()) && GEP1->hasOneUse() && in canSinkStoresAndGEPs() 238 (GEP1->getParent() == S1->getParent()); in canSinkStoresAndGEPs() 280 auto *GEP1 = cast<GetElementPtrInst>(Ptr1); in sinkStoresAndGEPs() local 283 GEPNew->applyMergedLocation(GEP0->getDebugLoc(), GEP1->getDebugLoc()); in sinkStoresAndGEPs() 287 GEP1->replaceAllUsesWith(GEPNew); in sinkStoresAndGEPs() 288 GEP1->eraseFromParent(); in sinkStoresAndGEPs()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Value.cpp | 1041 const GEPOperator *GEP1 = dyn_cast<GEPOperator>(Ptr1); in getPointerOffsetFrom() local 1049 if (!GEP1 || !GEP2 || GEP1->getOperand(0) != GEP2->getOperand(0) || in getPointerOffsetFrom() 1050 GEP1->getSourceElementType() != GEP2->getSourceElementType()) in getPointerOffsetFrom() 1055 for (; Idx != GEP1->getNumOperands() && Idx != GEP2->getNumOperands(); ++Idx) in getPointerOffsetFrom() 1056 if (GEP1->getOperand(Idx) != GEP2->getOperand(Idx)) in getPointerOffsetFrom() 1059 auto IOffset1 = getOffsetFromIndex(GEP1, Idx, DL); in getPointerOffsetFrom()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | BasicAliasAnalysis.cpp | 1080 const GEPOperator *GEP1, LocationSize V1Size, in aliasGEP() argument 1099 DecomposedGEP DecompGEP1 = DecomposeGEPExpression(GEP1, DL, &AC, DT); in aliasGEP() 1103 if (DecompGEP1.Base == GEP1 && DecompGEP2.Base == V2) in aliasGEP() 1157 const Value *RightPtr = GEP1; in aliasGEP()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineAddSub.cpp | 2008 GEPOperator *GEP1 = nullptr, *GEP2 = nullptr; in OptimizePointerDifference() local 2019 GEP1 = LHSGEP; in OptimizePointerDifference() 2024 GEP1 = LHSGEP; in OptimizePointerDifference() 2030 if (!GEP1) in OptimizePointerDifference() 2040 bool GEP1IsInBounds = GEP1->isInBounds(); in OptimizePointerDifference() 2041 Value *Result = EmitGEPOffset(GEP1, RewriteGEPs); in OptimizePointerDifference()
|
H A D | InstructionCombining.cpp | 2312 static bool isMergedGEPInBounds(GEPOperator &GEP1, GEPOperator &GEP2) { in isMergedGEPInBounds() argument 2313 return GEP1.isInBounds() && GEP2.isInBounds(); in isMergedGEPInBounds()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | SLPVectorizer.cpp | 4390 auto *GEP1 = dyn_cast<GetElementPtrInst>(Ptr1); in arePointersCompatible() local 4391 if (!GEP1) in arePointersCompatible() 4396 return GEP1->getNumOperands() == 2 && GEP2->getNumOperands() == 2 && in arePointersCompatible() 4397 ((isConstant(GEP1->getOperand(1)) && in arePointersCompatible() 4400 getSameOpcode({GEP1->getOperand(1), GEP2->getOperand(1)}, TLI) in arePointersCompatible()
|