Searched refs:GLHS (Results 1 – 2 of 2) sorted by relevance
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 3096 if (GetElementPtrInst *GLHS = dyn_cast<GetElementPtrInst>(LHS)) { in SimplifyICmpInst() local 3098 if (GLHS->getPointerOperand() == GRHS->getPointerOperand() && in SimplifyICmpInst() 3099 GLHS->hasAllConstantIndices() && GRHS->hasAllConstantIndices() && in SimplifyICmpInst() 3101 (GLHS->isInBounds() && GRHS->isInBounds() && in SimplifyICmpInst() 3106 Constant *Null = Constant::getNullValue(GLHS->getPointerOperandType()); in SimplifyICmpInst() 3107 SmallVector<Value *, 4> IndicesLHS(GLHS->idx_begin(), GLHS->idx_end()); in SimplifyICmpInst() 3109 GLHS->getSourceElementType(), Null, IndicesLHS); in SimplifyICmpInst() 3113 GLHS->getSourceElementType(), Null, IndicesRHS); in SimplifyICmpInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 3427 if (GetElementPtrInst *GLHS = dyn_cast<GetElementPtrInst>(LHS)) { in SimplifyICmpInst() local 3429 if (GLHS->getPointerOperand() == GRHS->getPointerOperand() && in SimplifyICmpInst() 3430 GLHS->hasAllConstantIndices() && GRHS->hasAllConstantIndices() && in SimplifyICmpInst() 3432 (GLHS->isInBounds() && GRHS->isInBounds() && in SimplifyICmpInst() 3437 Constant *Null = Constant::getNullValue(GLHS->getPointerOperandType()); in SimplifyICmpInst() 3438 SmallVector<Value *, 4> IndicesLHS(GLHS->idx_begin(), GLHS->idx_end()); in SimplifyICmpInst() 3440 GLHS->getSourceElementType(), Null, IndicesLHS); in SimplifyICmpInst() 3444 GLHS->getSourceElementType(), Null, IndicesRHS); in SimplifyICmpInst()
|