Lines Matching refs:GEPRHS

951   } else if (GEPOperator *GEPRHS = dyn_cast<GEPOperator>(RHS)) {  in FoldGEPICmp()  local
954 if (PtrBase != GEPRHS->getOperand(0)) { in FoldGEPICmp()
955 bool IndicesTheSame = GEPLHS->getNumOperands()==GEPRHS->getNumOperands(); in FoldGEPICmp()
957 GEPRHS->getOperand(0)->getType(); in FoldGEPICmp()
960 if (GEPLHS->getOperand(i) != GEPRHS->getOperand(i)) { in FoldGEPICmp()
967 return new ICmpInst(Cond, GEPLHS->getOperand(0), GEPRHS->getOperand(0)); in FoldGEPICmp()
972 if (GEPLHS->isInBounds() && GEPRHS->isInBounds() && in FoldGEPICmp()
974 (GEPRHS->hasAllConstantIndices() || GEPRHS->hasOneUse()) && in FoldGEPICmp()
976 GEPRHS->getOperand(0)->stripPointerCasts()) { in FoldGEPICmp()
978 Value *ROffset = EmitGEPOffset(GEPRHS); in FoldGEPICmp()
1006 return FoldGEPICmp(GEPRHS, GEPLHS->getOperand(0), in FoldGEPICmp()
1010 if (GEPRHS->hasAllZeroIndices()) in FoldGEPICmp()
1011 return FoldGEPICmp(GEPLHS, GEPRHS->getOperand(0), Cond, I); in FoldGEPICmp()
1013 bool GEPsInBounds = GEPLHS->isInBounds() && GEPRHS->isInBounds(); in FoldGEPICmp()
1014 if (GEPLHS->getNumOperands() == GEPRHS->getNumOperands()) { in FoldGEPICmp()
1018 for (unsigned i = 1, e = GEPRHS->getNumOperands(); i != e; ++i) in FoldGEPICmp()
1019 if (GEPLHS->getOperand(i) != GEPRHS->getOperand(i)) { in FoldGEPICmp()
1021 GEPRHS->getOperand(i)->getType()->getPrimitiveSizeInBits()) { in FoldGEPICmp()
1037 Value *RHSV = GEPRHS->getOperand(DiffOperand); in FoldGEPICmp()
1046 (isa<ConstantExpr>(GEPRHS) || GEPRHS->hasOneUse())) { in FoldGEPICmp()
1049 Value *R = EmitGEPOffset(GEPRHS); in FoldGEPICmp()