Lines Matching refs:IndVar
118 PHINode *IndVar, SCEVExpander &Rewriter);
1553 static Value *genLoopLimit(PHINode *IndVar, const SCEV *IVCount, Loop *L, in genLoopLimit() argument
1555 const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(IndVar)); in genLoopLimit()
1563 if (IndVar->getType()->isPointerTy() in genLoopLimit()
1581 Value *GEPBase = IndVar->getIncomingValueForBlock(L->getLoopPreheader()); in genLoopLimit()
1585 assert(SE->getSizeOfExpr(IntegerType::getInt64Ty(IndVar->getContext()), in genLoopLimit()
1629 IndVar->getType() : IVCount->getType(); in genLoopLimit()
1642 PHINode *IndVar, in LinearFunctionTestReplace() argument
1647 Value *CmpIndVar = IndVar; in LinearFunctionTestReplace()
1662 CmpIndVar = IndVar->getIncomingValueForBlock(L->getExitingBlock()); in LinearFunctionTestReplace()
1665 Value *ExitCnt = genLoopLimit(IndVar, IVCount, L, Rewriter, SE); in LinearFunctionTestReplace()
1666 assert(ExitCnt->getType()->isPointerTy() == IndVar->getType()->isPointerTy() in LinearFunctionTestReplace()
1691 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(SE->getSCEV(IndVar)); in LinearFunctionTestReplace()
1890 PHINode *IndVar = FindLoopCounter(L, BackedgeTakenCount, SE, DT); in runOnLoop() local
1891 if (IndVar) { in runOnLoop()
1902 (void)LinearFunctionTestReplace(L, BackedgeTakenCount, IndVar, in runOnLoop()