Lines Matching refs:GEP1
181 bool isEquivalentGEP(const GEPOperator *GEP1, const GEPOperator *GEP2);
182 bool isEquivalentGEP(const GetElementPtrInst *GEP1, in isEquivalentGEP() argument
184 return isEquivalentGEP(cast<GEPOperator>(GEP1), cast<GEPOperator>(GEP2)); in isEquivalentGEP()
345 bool FunctionComparator::isEquivalentGEP(const GEPOperator *GEP1, in isEquivalentGEP() argument
349 if (TD && GEP1->hasAllConstantIndices() && GEP2->hasAllConstantIndices()) { in isEquivalentGEP()
350 SmallVector<Value *, 8> Indices1(GEP1->idx_begin(), GEP1->idx_end()); in isEquivalentGEP()
352 uint64_t Offset1 = TD->getIndexedOffset(GEP1->getPointerOperandType(), in isEquivalentGEP()
359 if (GEP1->getPointerOperand()->getType() != in isEquivalentGEP()
363 if (GEP1->getNumOperands() != GEP2->getNumOperands()) in isEquivalentGEP()
366 for (unsigned i = 0, e = GEP1->getNumOperands(); i != e; ++i) { in isEquivalentGEP()
367 if (!enumerate(GEP1->getOperand(i), GEP2->getOperand(i))) in isEquivalentGEP()
426 if (const GetElementPtrInst *GEP1 = dyn_cast<GetElementPtrInst>(F1I)) { in compare() local
431 if (!enumerate(GEP1->getPointerOperand(), GEP2->getPointerOperand())) in compare()
434 if (!isEquivalentGEP(GEP1, GEP2)) in compare()