Home
last modified time | relevance | path

Searched refs:GEPRHS (Results 1 – 1 of 1) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp629 } else if (GEPOperator *GEPRHS = dyn_cast<GEPOperator>(RHS)) { in FoldGEPICmp() local
632 if (PtrBase != GEPRHS->getOperand(0)) { in FoldGEPICmp()
633 bool IndicesTheSame = GEPLHS->getNumOperands()==GEPRHS->getNumOperands(); in FoldGEPICmp()
635 GEPRHS->getOperand(0)->getType(); in FoldGEPICmp()
638 if (GEPLHS->getOperand(i) != GEPRHS->getOperand(i)) { in FoldGEPICmp()
645 return new ICmpInst(Cond, GEPLHS->getOperand(0), GEPRHS->getOperand(0)); in FoldGEPICmp()
650 if (GEPLHS->isInBounds() && GEPRHS->isInBounds() && in FoldGEPICmp()
652 (GEPRHS->hasAllConstantIndices() || GEPRHS->hasOneUse()) && in FoldGEPICmp()
654 GEPRHS->getOperand(0)->stripPointerCasts()) { in FoldGEPICmp()
656 Value *ROffset = EmitGEPOffset(GEPRHS); in FoldGEPICmp()
[all …]