Searched refs:GEP2 (Results 1 – 4 of 4) sorted by relevance
1086 const GEPOperator *GEP2, in aliasSameBasePointerGEPs() argument1090 GEP2->getPointerOperand()->stripPointerCastsAndInvariantGroups() && in aliasSameBasePointerGEPs()1091 GEP1->getPointerOperandType() == GEP2->getPointerOperandType() && in aliasSameBasePointerGEPs()1097 if (GEP1->getNumIndices() != GEP2->getNumIndices() || in aliasSameBasePointerGEPs()1113 dyn_cast<ConstantInt>(GEP2->getOperand(GEP2->getNumOperands() - 1)); in aliasSameBasePointerGEPs()1166 if (GEP1->getOperand(i + 1) != GEP2->getOperand(i + 1)) in aliasSameBasePointerGEPs()1181 Value *GEP2LastIdx = GEP2->getOperand(GEP2->getNumOperands() - 1); in aliasSameBasePointerGEPs()1341 if (const GEPOperator *GEP2 = dyn_cast<GEPOperator>(V2)) { in aliasGEP() local1345 isGEPBaseAtNegativeOffset(GEP2, DecompGEP2, DecompGEP1, V1Size)) in aliasGEP()1386 GEP2->getPointerOperand()->stripPointerCastsAndInvariantGroups() && in aliasGEP()[all …]
5933 const GEPOperator *GEP2 = dyn_cast<GEPOperator>(Ptr2); in isPointerOffset() local5972 if (GEP2) { in isPointerOffset()5973 auto Offset = getOffsetFromBase(GEP2, Ptr1); in isPointerOffset()5983 if (!GEP1 || !GEP2 || GEP1->getOperand(0) != GEP2->getOperand(0)) in isPointerOffset()5988 for (; Idx != GEP1->getNumOperands() && Idx != GEP2->getNumOperands(); ++Idx) in isPointerOffset()5989 if (GEP1->getOperand(Idx) != GEP2->getOperand(Idx)) in isPointerOffset()5993 auto Offset2 = getOffsetFromIndex(GEP2, Idx, DL); in isPointerOffset()
1592 GEPOperator *GEP1 = nullptr, *GEP2 = nullptr; in OptimizePointerDifference() local1605 GEP2 = RHSGEP; in OptimizePointerDifference()1621 GEP2 = LHSGEP; in OptimizePointerDifference()1632 if (GEP2) { in OptimizePointerDifference()1645 unsigned NumNonConstantIndices2 = GEP2->countNonConstantIndices(); in OptimizePointerDifference()1648 (NumNonConstantIndices2 > 0 && !GEP2->hasOneUse()))) { in OptimizePointerDifference()1660 if (IsNUW && !GEP2 && !Swapped && GEP1->isInBounds() && in OptimizePointerDifference()1667 if (GEP2) { in OptimizePointerDifference()1668 Value *Offset = EmitGEPOffset(GEP2); in OptimizePointerDifference()
1652 static bool isMergedGEPInBounds(GEPOperator &GEP1, GEPOperator &GEP2) { in isMergedGEPInBounds() argument1654 if (!GEP1.isInBounds() && !GEP2.isInBounds()) in isMergedGEPInBounds()1658 (GEP2.isInBounds() || GEP2.hasAllZeroIndices()); in isMergedGEPInBounds()