Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp689 static Instruction *transformToIndexedCompare(GEPOperator *GEPLHS, Value *RHS, in transformToIndexedCompare() argument
693 if (GEPLHS->getType()->isVectorTy()) in transformToIndexedCompare()
696 if (!GEPLHS->hasAllConstantIndices()) in transformToIndexedCompare()
699 Type *ElemTy = GEPLHS->getSourceElementType(); in transformToIndexedCompare()
701 std::tie(PtrBase, Index) = getAsConstantIndexedAddress(ElemTy, GEPLHS, DL); in transformToIndexedCompare()
726 Instruction *InstCombinerImpl::foldGEPICmp(GEPOperator *GEPLHS, Value *RHS, in foldGEPICmp() argument
742 Value *PtrBase = GEPLHS->getOperand(0); in foldGEPICmp()
743 if (PtrBase == RHS && GEPLHS->isInBounds()) { in foldGEPICmp()
745 Value *Offset = EmitGEPOffset(GEPLHS); in foldGEPICmp()
750 if (GEPLHS->isInBounds() && ICmpInst::isEquality(Cond) && in foldGEPICmp()
[all …]
H A DInstCombineInternal.h548 Instruction *foldGEPICmp(GEPOperator *GEPLHS, Value *RHS,