Lines Matching refs:PHINode

153   bool handleFloatingPointIV(Loop *L, PHINode *PH);
171 PHINode *IndVar, SCEVExpander &Rewriter);
215 bool IndVarSimplify::handleFloatingPointIV(Loop *L, PHINode *PN) { in handleFloatingPointIV()
366 PHINode *NewPHI = PHINode::Create(Int32Ty, 2, PN->getName()+".int", PN); in handleFloatingPointIV()
416 for (PHINode &PN : Header->phis()) in rewriteNonIntegerIVs()
421 if (PHINode *PN = dyn_cast_or_null<PHINode>(&*PHIs[i])) in rewriteNonIntegerIVs()
452 for (PHINode &PN : ExitBB->phis()) { in rewriteFirstIterationLoopExitValues()
482 auto *ExitVal = dyn_cast<PHINode>(PN.getIncomingValue(IncomingValIdx)); in rewriteFirstIterationLoopExitValues()
575 PHINode *IVPhi;
580 IndVarSimplifyVisitor(PHINode *IV, ScalarEvolution *SCEV, in IndVarSimplifyVisitor()
608 SmallVector<PHINode *, 8> LoopPhis; in simplifyAndExtend()
609 for (PHINode &PN : L->getHeader()->phis()) in simplifyAndExtend()
625 PHINode *CurrIV = LoopPhis.pop_back_val(); in simplifyAndExtend()
645 if (PHINode *WidePhi = createWideIV(WideIVs.back(), LI, SE, Rewriter, in simplifyAndExtend()
665 static PHINode *getLoopPhiForCounter(Value *IncV, Loop *L) { in getLoopPhiForCounter()
683 PHINode *Phi = dyn_cast<PHINode>(IncI->getOperand(0)); in getLoopPhiForCounter()
693 Phi = dyn_cast<PHINode>(IncI->getOperand(1)); in getLoopPhiForCounter()
746 PHINode *Phi = dyn_cast<PHINode>(LHS); in needsLFTR()
849 static bool AlmostDeadIV(PHINode *Phi, BasicBlock *LatchBlock, Value *Cond) { in AlmostDeadIV()
864 static bool isLoopCounter(PHINode* Phi, Loop *L, in isLoopCounter()
893 static PHINode *FindLoopCounter(Loop *L, BasicBlock *ExitingBB, in FindLoopCounter()
901 PHINode *BestPhi = nullptr; in FindLoopCounter()
907 for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) { in FindLoopCounter()
908 PHINode *Phi = cast<PHINode>(I); in FindLoopCounter()
977 static Value *genLoopLimit(PHINode *IndVar, BasicBlock *ExitingBB, in genLoopLimit()
1063 PHINode *IndVar, SCEVExpander &Rewriter) { in linearFunctionTestReplace()
1218 if (isa<PHINode>(I)) in sinkUnusedInvariants()
1251 if (PHINode *P = dyn_cast<PHINode>(User)) { in sinkUnusedInvariants()
1253 PHINode::getIncomingValueNumForOperand(U.getOperandNo()); in sinkUnusedInvariants()
2003 PHINode *IndVar = FindLoopCounter(L, ExitingBB, ExitCount, SE, DT); in run()
2039 if (PHINode *PHI = dyn_cast_or_null<PHINode>(V)) in run()