Searched refs:RHSGEP (Results 1 – 3 of 3) sorted by relevance
491 if (GetElementPtrInst *RHSGEP = dyn_cast<GetElementPtrInst>(RHS)) { in OptimizePointerDifference() local493 if (RHSGEP->getOperand(0) == LHS) { in OptimizePointerDifference()494 GEP = RHSGEP; in OptimizePointerDifference()499 RHSGEP->getOperand(0) == CE->getOperand(0)) { in OptimizePointerDifference()501 GEP = RHSGEP; in OptimizePointerDifference()
1422 } else if (GEPOperator *RHSGEP = dyn_cast<GEPOperator>(RHS)) { in OptimizePointerDifference() local1425 RHSGEP->getOperand(0)->stripPointerCasts()) { in OptimizePointerDifference()1426 GEP2 = RHSGEP; in OptimizePointerDifference()1433 if (GEPOperator *RHSGEP = dyn_cast<GEPOperator>(RHS)) { in OptimizePointerDifference() local1435 if (RHSGEP->getOperand(0) == LHS) { in OptimizePointerDifference()1436 GEP1 = RHSGEP; in OptimizePointerDifference()1440 if (RHSGEP->getOperand(0)->stripPointerCasts() == in OptimizePointerDifference()1443 GEP1 = RHSGEP; in OptimizePointerDifference()
1505 } else if (GEPOperator *RHSGEP = dyn_cast<GEPOperator>(RHS)) { in OptimizePointerDifference() local1508 RHSGEP->getOperand(0)->stripPointerCasts()) { in OptimizePointerDifference()1509 GEP2 = RHSGEP; in OptimizePointerDifference()1516 if (GEPOperator *RHSGEP = dyn_cast<GEPOperator>(RHS)) { in OptimizePointerDifference() local1518 if (RHSGEP->getOperand(0) == LHS) { in OptimizePointerDifference()1519 GEP1 = RHSGEP; in OptimizePointerDifference()1523 if (RHSGEP->getOperand(0)->stripPointerCasts() == in OptimizePointerDifference()1526 GEP1 = RHSGEP; in OptimizePointerDifference()