Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp1041 const GEPOperator *GEP2 = dyn_cast<GEPOperator>(Ptr2); in getPointerOffsetFrom() local
1048 if (!GEP1 || !GEP2 || GEP1->getOperand(0) != GEP2->getOperand(0) || in getPointerOffsetFrom()
1049 GEP1->getSourceElementType() != GEP2->getSourceElementType()) in getPointerOffsetFrom()
1054 for (; Idx != GEP1->getNumOperands() && Idx != GEP2->getNumOperands(); ++Idx) in getPointerOffsetFrom()
1055 if (GEP1->getOperand(Idx) != GEP2->getOperand(Idx)) in getPointerOffsetFrom()
1059 auto IOffset2 = getOffsetFromIndex(GEP2, Idx, DL); in getPointerOffsetFrom()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp2002 GEPOperator *GEP1 = nullptr, *GEP2 = nullptr; in OptimizePointerDifference() local
2019 GEP2 = RHSGEP; in OptimizePointerDifference()
2027 if (GEP2) { in OptimizePointerDifference()
2040 unsigned NumNonConstantIndices2 = GEP2->countNonConstantIndices(); in OptimizePointerDifference()
2043 (NumNonConstantIndices2 > 0 && !GEP2->hasOneUse()))) { in OptimizePointerDifference()
2054 if (IsNUW && !GEP2 && !Swapped && GEP1->isInBounds() && in OptimizePointerDifference()
2060 if (GEP2) { in OptimizePointerDifference()
2061 Value *Offset = EmitGEPOffset(GEP2); in OptimizePointerDifference()
2063 GEP1->isInBounds() && GEP2->isInBounds()); in OptimizePointerDifference()
H A DInstructionCombining.cpp2105 static bool isMergedGEPInBounds(GEPOperator &GEP1, GEPOperator &GEP2) { in isMergedGEPInBounds() argument
2107 if (!GEP1.isInBounds() && !GEP2.isInBounds()) in isMergedGEPInBounds()
2111 (GEP2.isInBounds() || GEP2.hasAllZeroIndices()); in isMergedGEPInBounds()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp3838 auto *GEP2 = dyn_cast<GetElementPtrInst>(Ptr2); in arePointersCompatible() local
3839 if (!GEP2) in arePointersCompatible()
3841 return GEP1->getNumOperands() == 2 && GEP2->getNumOperands() == 2 && in arePointersCompatible()
3843 isConstant(GEP2->getOperand(1))) || in arePointersCompatible()
3845 getSameOpcode({GEP1->getOperand(1), GEP2->getOperand(1)}, TLI) in arePointersCompatible()