Searched refs:GEPLHS (Results 1 – 4 of 4) sorted by relevance
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 566 Instruction *InstCombiner::FoldGEPICmp(GEPOperator *GEPLHS, Value *RHS, in FoldGEPICmp() argument 573 Value *PtrBase = GEPLHS->getOperand(0); in FoldGEPICmp() 574 if (TD && PtrBase == RHS && GEPLHS->isInBounds()) { in FoldGEPICmp() 579 Value *Offset = EvaluateGEPOffsetExpression(GEPLHS, *this); in FoldGEPICmp() 583 Offset = EmitGEPOffset(GEPLHS); in FoldGEPICmp() 590 bool IndicesTheSame = GEPLHS->getNumOperands()==GEPRHS->getNumOperands(); in FoldGEPICmp() 591 IndicesTheSame &= GEPLHS->getOperand(0)->getType() == in FoldGEPICmp() 594 for (unsigned i = 1, e = GEPLHS->getNumOperands(); i != e; ++i) in FoldGEPICmp() 595 if (GEPLHS->getOperand(i) != GEPRHS->getOperand(i)) { in FoldGEPICmp() 603 GEPLHS->getOperand(0), GEPRHS->getOperand(0)); in FoldGEPICmp() [all …]
|
D | InstCombine.h | 153 Instruction *FoldGEPICmp(GEPOperator *GEPLHS, Value *RHS,
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 890 static Instruction *transformToIndexedCompare(GEPOperator *GEPLHS, Value *RHS, in transformToIndexedCompare() argument 893 if (!GEPLHS->hasAllConstantIndices()) in transformToIndexedCompare() 897 std::tie(PtrBase, Index) = getAsConstantIndexedAddress(GEPLHS, DL); in transformToIndexedCompare() 922 Instruction *InstCombiner::FoldGEPICmp(GEPOperator *GEPLHS, Value *RHS, in FoldGEPICmp() argument 938 Value *PtrBase = GEPLHS->getOperand(0); in FoldGEPICmp() 939 if (PtrBase == RHS && GEPLHS->isInBounds()) { in FoldGEPICmp() 944 Value *Offset = EvaluateGEPOffsetExpression(GEPLHS, *this, DL); in FoldGEPICmp() 948 Offset = EmitGEPOffset(GEPLHS); in FoldGEPICmp() 955 bool IndicesTheSame = GEPLHS->getNumOperands()==GEPRHS->getNumOperands(); in FoldGEPICmp() 956 IndicesTheSame &= GEPLHS->getOperand(0)->getType() == in FoldGEPICmp() [all …]
|
D | InstCombineInternal.h | 285 Instruction *FoldGEPICmp(GEPOperator *GEPLHS, Value *RHS,
|