Lines Matching refs:GEPRHS
895 } else if (GEPOperator *GEPRHS = dyn_cast<GEPOperator>(RHS)) { in foldGEPICmp() local
898 if (PtrBase != GEPRHS->getOperand(0)) { in foldGEPICmp()
899 bool IndicesTheSame = GEPLHS->getNumOperands()==GEPRHS->getNumOperands(); in foldGEPICmp()
901 GEPRHS->getOperand(0)->getType(); in foldGEPICmp()
904 if (GEPLHS->getOperand(i) != GEPRHS->getOperand(i)) { in foldGEPICmp()
912 return new ICmpInst(Cond, GEPLHS->getOperand(0), GEPRHS->getOperand(0)); in foldGEPICmp()
917 if (GEPLHS->isInBounds() && GEPRHS->isInBounds() && in foldGEPICmp()
919 (GEPRHS->hasAllConstantIndices() || GEPRHS->hasOneUse()) && in foldGEPICmp()
921 GEPRHS->getOperand(0)->stripPointerCasts()) { in foldGEPICmp()
923 Value *ROffset = EmitGEPOffset(GEPRHS); in foldGEPICmp()
951 return foldGEPICmp(GEPRHS, GEPLHS->getOperand(0), in foldGEPICmp()
955 if (GEPRHS->hasAllZeroIndices()) in foldGEPICmp()
956 return foldGEPICmp(GEPLHS, GEPRHS->getOperand(0), Cond, I); in foldGEPICmp()
958 bool GEPsInBounds = GEPLHS->isInBounds() && GEPRHS->isInBounds(); in foldGEPICmp()
959 if (GEPLHS->getNumOperands() == GEPRHS->getNumOperands()) { in foldGEPICmp()
963 for (unsigned i = 1, e = GEPRHS->getNumOperands(); i != e; ++i) in foldGEPICmp()
964 if (GEPLHS->getOperand(i) != GEPRHS->getOperand(i)) { in foldGEPICmp()
966 GEPRHS->getOperand(i)->getType()->getPrimitiveSizeInBits()) { in foldGEPICmp()
982 Value *RHSV = GEPRHS->getOperand(DiffOperand); in foldGEPICmp()
991 (isa<ConstantExpr>(GEPRHS) || GEPRHS->hasOneUse())) { in foldGEPICmp()
994 Value *R = EmitGEPOffset(GEPRHS); in foldGEPICmp()