Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp600 Instruction *InstCombiner::FoldGEPICmp(GEPOperator *GEPLHS, Value *RHS, in FoldGEPICmp() argument
616 Value *PtrBase = GEPLHS->getOperand(0); in FoldGEPICmp()
617 if (PtrBase == RHS && GEPLHS->isInBounds()) { in FoldGEPICmp()
622 Value *Offset = EvaluateGEPOffsetExpression(GEPLHS, *this, DL); in FoldGEPICmp()
626 Offset = EmitGEPOffset(GEPLHS); in FoldGEPICmp()
633 bool IndicesTheSame = GEPLHS->getNumOperands()==GEPRHS->getNumOperands(); in FoldGEPICmp()
634 IndicesTheSame &= GEPLHS->getOperand(0)->getType() == in FoldGEPICmp()
637 for (unsigned i = 1, e = GEPLHS->getNumOperands(); i != e; ++i) 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()
[all …]
DInstCombineInternal.h282 Instruction *FoldGEPICmp(GEPOperator *GEPLHS, Value *RHS,