Home
last modified time | relevance | path

Searched refs:GEP2 (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp1042 const GEPOperator *GEP2 = dyn_cast<GEPOperator>(Ptr2); 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()
1060 auto IOffset2 = getOffsetFromIndex(GEP2, Idx, DL); in getPointerOffsetFrom()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp2008 GEPOperator *GEP1 = nullptr, *GEP2 = nullptr; in OptimizePointerDifference() local
2025 GEP2 = RHSGEP; in OptimizePointerDifference()
2037 bool RewriteGEPs = GEP2 != nullptr; in OptimizePointerDifference()
2046 if (IsNUW && !GEP2 && !Swapped && GEP1IsInBounds && in OptimizePointerDifference()
2052 if (GEP2) { in OptimizePointerDifference()
2053 bool GEP2IsInBounds = GEP2->isInBounds(); in OptimizePointerDifference()
2054 Value *Offset = EmitGEPOffset(GEP2, RewriteGEPs); in OptimizePointerDifference()
H A DInstructionCombining.cpp2312 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 DSLPVectorizer.cpp4393 auto *GEP2 = dyn_cast<GetElementPtrInst>(Ptr2); in arePointersCompatible() local
4394 if (!GEP2) in arePointersCompatible()
4396 return GEP1->getNumOperands() == 2 && GEP2->getNumOperands() == 2 && in arePointersCompatible()
4398 isConstant(GEP2->getOperand(1))) || in arePointersCompatible()
4400 getSameOpcode({GEP1->getOperand(1), GEP2->getOperand(1)}, TLI) in arePointersCompatible()