Lines Matching refs:LoopEntry
1502 static Value *matchCondition(BranchInst *BI, BasicBlock *LoopEntry, in matchCondition() argument
1521 if ((Pred == ICmpInst::ICMP_NE && TrueSucc == LoopEntry) || in matchCondition()
1522 (Pred == ICmpInst::ICMP_EQ && FalseSucc == LoopEntry)) in matchCondition()
1532 static Value *matchShiftULTCondition(BranchInst *BI, BasicBlock *LoopEntry, in matchShiftULTCondition() argument
1548 if (Pred == ICmpInst::ICMP_ULT && FalseSucc == LoopEntry) { in matchShiftULTCondition()
1559 BasicBlock *LoopEntry) { in getRecurrenceVar() argument
1561 if (PhiX && PhiX->getParent() == LoopEntry && in getRecurrenceVar()
1599 BasicBlock *LoopEntry; in detectShiftUntilLessThanIdiom() local
1604 LoopEntry = *(CurLoop->block_begin()); in detectShiftUntilLessThanIdiom()
1608 dyn_cast<BranchInst>(LoopEntry->getTerminator()), LoopEntry, in detectShiftUntilLessThanIdiom()
1619 int Idx = VarPhi->getBasicBlockIndex(LoopEntry); in detectShiftUntilLessThanIdiom()
1646 LoopEntry->getFirstNonPHI()->getIterator(), LoopEntry->end())) { in detectShiftUntilLessThanIdiom()
1654 PHINode *Phi = getRecurrenceVar(Inst.getOperand(0), &Inst, LoopEntry); in detectShiftUntilLessThanIdiom()
1697 BasicBlock *LoopEntry; in detectPopcountIdiom() local
1705 LoopEntry = *(CurLoop->block_begin()); in detectPopcountIdiom()
1710 dyn_cast<BranchInst>(LoopEntry->getTerminator()), LoopEntry)) in detectPopcountIdiom()
1742 PhiX = getRecurrenceVar(VarX1, DefX2, LoopEntry); in detectPopcountIdiom()
1750 LoopEntry->getFirstNonPHI()->getIterator(), LoopEntry->end())) { in detectPopcountIdiom()
1758 PHINode *Phi = getRecurrenceVar(Inst.getOperand(0), &Inst, LoopEntry); in detectPopcountIdiom()
1765 if ((cast<Instruction>(U))->getParent() != LoopEntry) { in detectPopcountIdiom()
1829 BasicBlock *LoopEntry; in detectShiftUntilZeroIdiom() local
1835 LoopEntry = *(CurLoop->block_begin()); in detectShiftUntilZeroIdiom()
1839 dyn_cast<BranchInst>(LoopEntry->getTerminator()), LoopEntry)) in detectShiftUntilZeroIdiom()
1855 PHINode *PhiX = getRecurrenceVar(VarX, DefX, LoopEntry); in detectShiftUntilZeroIdiom()
1874 LoopEntry->getFirstNonPHI()->getIterator(), LoopEntry->end())) { in detectShiftUntilZeroIdiom()
1882 PHINode *Phi = getRecurrenceVar(Inst.getOperand(0), &Inst, LoopEntry); in detectShiftUntilZeroIdiom()