Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp916 auto *SecondGEP = dyn_cast<GetElementPtrInst>(ResultPtr); in lowerToSingleIndexGEPs() local
917 if (isSwapCandidate && isLegalToSwapOperand(FirstGEP, SecondGEP, L)) in lowerToSingleIndexGEPs()
918 swapGEPOperand(FirstGEP, SecondGEP); in lowerToSingleIndexGEPs()
1300 GetElementPtrInst *FirstGEP, GetElementPtrInst *SecondGEP, Loop *CurLoop) { in isLegalToSwapOperand() argument
1304 if (!SecondGEP || FirstGEP->getParent() != SecondGEP->getParent()) in isLegalToSwapOperand()
1307 if (FirstGEP == SecondGEP) in isLegalToSwapOperand()
1311 unsigned SecondNum = SecondGEP->getNumOperands(); in isLegalToSwapOperand()
1317 Value *SecondBase = SecondGEP->getOperand(0); in isLegalToSwapOperand()