Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DSeparateConstOffsetFromGEP.cpp827 GetElementPtrInst *FirstGEP = dyn_cast<GetElementPtrInst>(FirstResult); in lowerToSingleIndexGEPs() local
829 if (isSwapCandidate && isLegalToSwapOperand(FirstGEP, SecondGEP, L)) in lowerToSingleIndexGEPs()
830 swapGEPOperand(FirstGEP, SecondGEP); in lowerToSingleIndexGEPs()
1178 GetElementPtrInst *FirstGEP, GetElementPtrInst *SecondGEP, Loop *CurLoop) { in isLegalToSwapOperand() argument
1179 if (!FirstGEP || !FirstGEP->hasOneUse()) in isLegalToSwapOperand()
1182 if (!SecondGEP || FirstGEP->getParent() != SecondGEP->getParent()) in isLegalToSwapOperand()
1185 if (FirstGEP == SecondGEP) in isLegalToSwapOperand()
1188 unsigned FirstNum = FirstGEP->getNumOperands(); in isLegalToSwapOperand()
1194 Value *FirstBase = FirstGEP->getOperand(0); in isLegalToSwapOperand()
1196 Value *FirstOffset = FirstGEP->getOperand(1); in isLegalToSwapOperand()