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

/external/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp181 bool isEquivalentGEP(const GEPOperator *GEP1, const GEPOperator *GEP2);
183 const GetElementPtrInst *GEP2) {
184 return isEquivalentGEP(cast<GEPOperator>(GEP1), cast<GEPOperator>(GEP2));
346 const GEPOperator *GEP2) {
349 if (TD && GEP1->hasAllConstantIndices() && GEP2->hasAllConstantIndices()) {
351 SmallVector<Value *, 8> Indices2(GEP2->idx_begin(), GEP2->idx_end());
354 uint64_t Offset2 = TD->getIndexedOffset(GEP2->getPointerOperandType(),
360 GEP2->getPointerOperand()->getType())
363 if (GEP1->getNumOperands() != GEP2
182 isEquivalentGEP(const GetElementPtrInst *GEP1, const GetElementPtrInst *GEP2) argument
345 isEquivalentGEP(const GEPOperator *GEP1, const GEPOperator *GEP2) argument
427 const GetElementPtrInst *GEP2 = dyn_cast<GetElementPtrInst>(F2I); local
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp79 GetElementPtrInst *GEP2 = dyn_cast<GetElementPtrInst>(Ptr2); local
85 if (GEP1 && GEP2 == 0 && GEP1->getOperand(0)->stripPointerCasts() == Ptr2) {
90 if (GEP2 && GEP1 == 0 && GEP2->getOperand(0)->stripPointerCasts() == Ptr1) {
91 Offset = GetOffsetFromIndex(GEP2, 1, VariableIdxFound, TD);
100 if (!GEP1 || !GEP2 || GEP1->getOperand(0) != GEP2->getOperand(0))
105 for (; Idx != GEP1->getNumOperands() && Idx != GEP2->getNumOperands(); ++Idx)
106 if (GEP1->getOperand(Idx) != GEP2->getOperand(Idx))
110 int64_t Offset2 = GetOffsetFromIndex(GEP2, Id
[all...]

Completed in 49 milliseconds