Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp915 auto *FirstGEP = dyn_cast_or_null<GetElementPtrInst>(FirstResult); 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
1301 if (!FirstGEP || !FirstGEP->hasOneUse()) in isLegalToSwapOperand()
1304 if (!SecondGEP || FirstGEP->getParent() != SecondGEP->getParent()) in isLegalToSwapOperand()
1307 if (FirstGEP == SecondGEP) in isLegalToSwapOperand()
1310 unsigned FirstNum = FirstGEP->getNumOperands(); in isLegalToSwapOperand()
1316 Value *FirstBase = FirstGEP->getOperand(0); in isLegalToSwapOperand()
1318 Value *FirstOffset = FirstGEP->getOperand(1); in isLegalToSwapOperand()