Lines Matching refs:IV
379 DAGRootTracker(LoopReroll *Parent, Loop *L, Instruction *IV, in DAGRootTracker()
386 PreserveLCSSA(PreserveLCSSA), IV(IV), IVToIncMap(IncrMap), in DAGRootTracker()
442 Instruction *IV; member
477 bool isLoopControlIV(Loop *L, Instruction *IV);
481 bool reroll(Instruction *IV, Loop *L, BasicBlock *Header,
515 bool LoopReroll::isLoopControlIV(Loop *L, Instruction *IV) { in isLoopControlIV() argument
516 unsigned IVUses = IV->getNumUses(); in isLoopControlIV()
520 for (auto *User : IV->users()) { in isLoopControlIV()
547 if (PN != IV) in isLoopControlIV()
763 static bool isLoopIncrement(User *U, Instruction *IV) { in isLoopIncrement() argument
772 if (PN && PN == IV) in isLoopIncrement()
785 if (isLoopIncrement(I, IV)) { in collectPossibleRoots()
861 if (I != IV && findRootsBase(I, SubsumedInsts)) in findRootsRecursive()
957 Inc = IVToIncMap[IV]; in findRoots()
961 for (auto *IVU : IV->users()) { in findRoots()
962 if (isLoopIncrement(IVU, IV)) in findRoots()
965 findRootsRecursive(IV, SmallInstructionSet()); in findRoots()
966 LoopIncs.push_back(IV); in findRoots()
968 if (!findRootsBase(IV, SmallInstructionSet())) in findRoots()
1159 if (LoopControlIV && LoopControlIV != IV) { in validate()
1405 LLVM_DEBUG(dbgs() << "LRR: Matched all iteration increments for " << *IV in validate()
1606 bool LoopReroll::reroll(Instruction *IV, Loop *L, BasicBlock *Header, in reroll() argument
1609 DAGRootTracker DAGRoots(this, L, IV, SE, AA, TLI, DT, LI, PreserveLCSSA, in reroll()
1614 LLVM_DEBUG(dbgs() << "LRR: Found all root induction increments for: " << *IV in reroll()