Lines Matching refs:PHINode

140   bool handleFloatingPointIV(Loop *L, PHINode *PH);
158 PHINode *IndVar, SCEVExpander &Rewriter);
202 bool IndVarSimplify::handleFloatingPointIV(Loop *L, PHINode *PN) { in handleFloatingPointIV()
353 PHINode *NewPHI = PHINode::Create(Int32Ty, 2, PN->getName()+".int", PN); in handleFloatingPointIV()
403 for (PHINode &PN : Header->phis()) in rewriteNonIntegerIVs()
408 if (PHINode *PN = dyn_cast_or_null<PHINode>(&*PHI)) in rewriteNonIntegerIVs()
439 for (PHINode &PN : ExitBB->phis()) { in rewriteFirstIterationLoopExitValues()
469 auto *ExitVal = dyn_cast<PHINode>(PN.getIncomingValue(IncomingValIdx)); in rewriteFirstIterationLoopExitValues()
562 PHINode *IVPhi;
567 IndVarSimplifyVisitor(PHINode *IV, ScalarEvolution *SCEV, in IndVarSimplifyVisitor()
595 SmallVector<PHINode *, 8> LoopPhis; in simplifyAndExtend()
596 for (PHINode &PN : L->getHeader()->phis()) in simplifyAndExtend()
612 PHINode *CurrIV = LoopPhis.pop_back_val(); in simplifyAndExtend()
632 if (PHINode *WidePhi = createWideIV(WideIVs.back(), LI, SE, Rewriter, in simplifyAndExtend()
652 static PHINode *getLoopPhiForCounter(Value *IncV, Loop *L) { in getLoopPhiForCounter()
670 PHINode *Phi = dyn_cast<PHINode>(IncI->getOperand(0)); in getLoopPhiForCounter()
680 Phi = dyn_cast<PHINode>(IncI->getOperand(1)); in getLoopPhiForCounter()
733 PHINode *Phi = dyn_cast<PHINode>(LHS); in needsLFTR()
795 static bool isLoopCounter(PHINode* Phi, Loop *L, in isLoopCounter()
824 static PHINode *FindLoopCounter(Loop *L, BasicBlock *ExitingBB, in FindLoopCounter()
832 PHINode *BestPhi = nullptr; in FindLoopCounter()
838 for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) { in FindLoopCounter()
839 PHINode *Phi = cast<PHINode>(I); in FindLoopCounter()
904 static Value *genLoopLimit(PHINode *IndVar, BasicBlock *ExitingBB, in genLoopLimit()
941 PHINode *IndVar, SCEVExpander &Rewriter) { in linearFunctionTestReplace()
1095 if (isa<PHINode>(I)) in sinkUnusedInvariants()
1128 if (PHINode *P = dyn_cast<PHINode>(User)) { in sinkUnusedInvariants()
1130 PHINode::getIncomingValueNumForOperand(U.getOperandNo()); in sinkUnusedInvariants()
1990 PHINode *IndVar = FindLoopCounter(L, ExitingBB, ExitCount, SE, DT); in run()
2018 if (PHINode *PHI = dyn_cast_or_null<PHINode>(V)) in run()