Searched defs:GEPLHS (Results 1 - 2 of 2) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp566 Instruction *InstCombiner::FoldGEPICmp(GEPOperator *GEPLHS, Value *RHS, argument
573 Value *PtrBase = GEPLHS->getOperand(0);
574 if (TD && PtrBase == RHS && GEPLHS->isInBounds()) {
579 Value *Offset = EvaluateGEPOffsetExpression(GEPLHS, *this);
583 Offset = EmitGEPOffset(GEPLHS);
590 bool IndicesTheSame = GEPLHS->getNumOperands()==GEPRHS->getNumOperands();
591 IndicesTheSame &= GEPLHS->getOperand(0)->getType() ==
594 for (unsigned i = 1, e = GEPLHS->getNumOperands(); i != e; ++i)
595 if (GEPLHS->getOperand(i) != GEPRHS->getOperand(i)) {
603 GEPLHS
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp887 /// Converts (CMP GEPLHS, RHS) if this change would make RHS a constant.
889 /// between GEPLHS and RHS.
890 static Instruction *transformToIndexedCompare(GEPOperator *GEPLHS, Value *RHS, argument
893 if (!GEPLHS->hasAllConstantIndices())
897 std::tie(PtrBase, Index) = getAsConstantIndexedAddress(GEPLHS, DL);
922 Instruction *InstCombiner::FoldGEPICmp(GEPOperator *GEPLHS, Value *RHS, argument
938 Value *PtrBase = GEPLHS->getOperand(0);
939 if (PtrBase == RHS && GEPLHS->isInBounds()) {
944 Value *Offset = EvaluateGEPOffsetExpression(GEPLHS, *this, DL);
948 Offset = EmitGEPOffset(GEPLHS);
[all...]

Completed in 95 milliseconds