Searched refs:LHSGEP (Results 1 – 3 of 3) sorted by relevance
475 if (GetElementPtrInst *LHSGEP = dyn_cast<GetElementPtrInst>(LHS)) { in OptimizePointerDifference() local477 if (LHSGEP->getOperand(0) == RHS) { in OptimizePointerDifference()478 GEP = LHSGEP; in OptimizePointerDifference()483 LHSGEP->getOperand(0) == CE->getOperand(0)) { in OptimizePointerDifference()485 GEP = LHSGEP; in OptimizePointerDifference()
1417 if (GEPOperator *LHSGEP = dyn_cast<GEPOperator>(LHS)) { in OptimizePointerDifference() local1419 if (LHSGEP->getOperand(0) == RHS) { in OptimizePointerDifference()1420 GEP1 = LHSGEP; in OptimizePointerDifference()1424 if (LHSGEP->getOperand(0)->stripPointerCasts() == in OptimizePointerDifference()1427 GEP1 = LHSGEP; in OptimizePointerDifference()1438 } else if (GEPOperator *LHSGEP = dyn_cast<GEPOperator>(LHS)) { in OptimizePointerDifference() local1441 LHSGEP->getOperand(0)->stripPointerCasts()) { in OptimizePointerDifference()1442 GEP2 = LHSGEP; in OptimizePointerDifference()
1500 if (GEPOperator *LHSGEP = dyn_cast<GEPOperator>(LHS)) { in OptimizePointerDifference() local1502 if (LHSGEP->getOperand(0) == RHS) { in OptimizePointerDifference()1503 GEP1 = LHSGEP; in OptimizePointerDifference()1507 if (LHSGEP->getOperand(0)->stripPointerCasts() == in OptimizePointerDifference()1510 GEP1 = LHSGEP; in OptimizePointerDifference()1521 } else if (GEPOperator *LHSGEP = dyn_cast<GEPOperator>(LHS)) { in OptimizePointerDifference() local1524 LHSGEP->getOperand(0)->stripPointerCasts()) { in OptimizePointerDifference()1525 GEP2 = LHSGEP; in OptimizePointerDifference()