Home | History | Annotate | Download | only in Scalar

Lines Matching refs:Ptr2

71 /// IsPointerOffset - Return true if Ptr1 is provably equal to Ptr2 plus a
73 /// be &A[42], and Ptr2 might be &A[40]. In this case offset would be -8.
74 static bool IsPointerOffset(Value *Ptr1, Value *Ptr2, int64_t &Offset,
77 Ptr2 = Ptr2->stripPointerCasts();
79 GetElementPtrInst *GEP2 = dyn_cast<GetElementPtrInst>(Ptr2);
85 if (GEP1 && GEP2 == 0 && GEP1->getOperand(0)->stripPointerCasts() == Ptr2) {
95 // Right now we handle the case when Ptr1/Ptr2 are both GEPs with an identical