Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp586 } else if (GEPOperator *GEPRHS = dyn_cast<GEPOperator>(RHS)) { in FoldGEPICmp() local
589 if (PtrBase != GEPRHS->getOperand(0)) { in FoldGEPICmp()
590 bool IndicesTheSame = GEPLHS->getNumOperands()==GEPRHS->getNumOperands(); in FoldGEPICmp()
592 GEPRHS->getOperand(0)->getType(); in FoldGEPICmp()
595 if (GEPLHS->getOperand(i) != GEPRHS->getOperand(i)) { in FoldGEPICmp()
603 GEPLHS->getOperand(0), GEPRHS->getOperand(0)); in FoldGEPICmp()
619 return FoldGEPICmp(GEPRHS, GEPLHS->getOperand(0), in FoldGEPICmp()
624 for (unsigned i = 1, e = GEPRHS->getNumOperands(); i != e; ++i) in FoldGEPICmp()
625 if (!isa<Constant>(GEPRHS->getOperand(i)) || in FoldGEPICmp()
626 !cast<Constant>(GEPRHS->getOperand(i))->isNullValue()) { in FoldGEPICmp()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp951 } else if (GEPOperator *GEPRHS = dyn_cast<GEPOperator>(RHS)) { in FoldGEPICmp() local
954 if (PtrBase != GEPRHS->getOperand(0)) { in FoldGEPICmp()
955 bool IndicesTheSame = GEPLHS->getNumOperands()==GEPRHS->getNumOperands(); in FoldGEPICmp()
957 GEPRHS->getOperand(0)->getType(); in FoldGEPICmp()
960 if (GEPLHS->getOperand(i) != GEPRHS->getOperand(i)) { in FoldGEPICmp()
967 return new ICmpInst(Cond, GEPLHS->getOperand(0), GEPRHS->getOperand(0)); in FoldGEPICmp()
972 if (GEPLHS->isInBounds() && GEPRHS->isInBounds() && in FoldGEPICmp()
974 (GEPRHS->hasAllConstantIndices() || GEPRHS->hasOneUse()) && in FoldGEPICmp()
976 GEPRHS->getOperand(0)->stripPointerCasts()) { in FoldGEPICmp()
978 Value *ROffset = EmitGEPOffset(GEPRHS); in FoldGEPICmp()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp897 } else if (GEPOperator *GEPRHS = dyn_cast<GEPOperator>(RHS)) { in foldGEPICmp() local
900 if (PtrBase != GEPRHS->getOperand(0)) { in foldGEPICmp()
901 bool IndicesTheSame = GEPLHS->getNumOperands()==GEPRHS->getNumOperands(); in foldGEPICmp()
903 GEPRHS->getOperand(0)->getType(); in foldGEPICmp()
906 if (GEPLHS->getOperand(i) != GEPRHS->getOperand(i)) { in foldGEPICmp()
913 return new ICmpInst(Cond, GEPLHS->getOperand(0), GEPRHS->getOperand(0)); in foldGEPICmp()
918 if (GEPLHS->isInBounds() && GEPRHS->isInBounds() && in foldGEPICmp()
920 (GEPRHS->hasAllConstantIndices() || GEPRHS->hasOneUse()) && in foldGEPICmp()
922 GEPRHS->getOperand(0)->stripPointerCasts()) { in foldGEPICmp()
924 Value *ROffset = EmitGEPOffset(GEPRHS); in foldGEPICmp()
[all …]