Lines Matching refs:FromBBI

215     void CopyAndPredicateBlock(BBInfo &ToBBI, BBInfo &FromBBI,
218 void MergeBlocks(BBInfo &ToBBI, BBInfo &FromBBI, bool AddEdges = true);
1591 void IfConverter::CopyAndPredicateBlock(BBInfo &ToBBI, BBInfo &FromBBI, in CopyAndPredicateBlock() argument
1596 for (MachineBasicBlock::iterator I = FromBBI.BB->begin(), in CopyAndPredicateBlock()
1597 E = FromBBI.BB->end(); I != E; ++I) { in CopyAndPredicateBlock()
1630 std::vector<MachineBasicBlock *> Succs(FromBBI.BB->succ_begin(), in CopyAndPredicateBlock()
1631 FromBBI.BB->succ_end()); in CopyAndPredicateBlock()
1632 MachineBasicBlock *NBB = getNextBlock(FromBBI.BB); in CopyAndPredicateBlock()
1633 MachineBasicBlock *FallThrough = FromBBI.HasFallThrough ? NBB : nullptr; in CopyAndPredicateBlock()
1644 ToBBI.Predicate.append(FromBBI.Predicate.begin(), FromBBI.Predicate.end()); in CopyAndPredicateBlock()
1647 ToBBI.ClobbersPred |= FromBBI.ClobbersPred; in CopyAndPredicateBlock()
1658 void IfConverter::MergeBlocks(BBInfo &ToBBI, BBInfo &FromBBI, bool AddEdges) { in MergeBlocks() argument
1659 assert(!FromBBI.BB->hasAddressTaken() && in MergeBlocks()
1663 FromBBI.BB, FromBBI.BB->begin(), FromBBI.BB->end()); in MergeBlocks()
1671 SmallVector<MachineBasicBlock *, 4> FromSuccs(FromBBI.BB->succ_begin(), in MergeBlocks()
1672 FromBBI.BB->succ_end()); in MergeBlocks()
1673 MachineBasicBlock *NBB = getNextBlock(FromBBI.BB); in MergeBlocks()
1674 MachineBasicBlock *FallThrough = FromBBI.HasFallThrough ? NBB : nullptr; in MergeBlocks()
1678 if (AddEdges && ToBBI.BB->isSuccessor(FromBBI.BB)) { in MergeBlocks()
1679 To2FromProb = MBPI->getEdgeProbability(ToBBI.BB, FromBBI.BB); in MergeBlocks()
1684 std::find(ToBBI.BB->succ_begin(), ToBBI.BB->succ_end(), FromBBI.BB), in MergeBlocks()
1700 NewProb = MBPI->getEdgeProbability(FromBBI.BB, Succ); in MergeBlocks()
1711 FromBBI.BB->removeSuccessor(Succ); in MergeBlocks()
1746 if (NBB && !FromBBI.BB->isSuccessor(NBB)) in MergeBlocks()
1747 FromBBI.BB->addSuccessor(NBB); in MergeBlocks()
1753 ToBBI.Predicate.append(FromBBI.Predicate.begin(), FromBBI.Predicate.end()); in MergeBlocks()
1754 FromBBI.Predicate.clear(); in MergeBlocks()
1756 ToBBI.NonPredSize += FromBBI.NonPredSize; in MergeBlocks()
1757 ToBBI.ExtraCost += FromBBI.ExtraCost; in MergeBlocks()
1758 ToBBI.ExtraCost2 += FromBBI.ExtraCost2; in MergeBlocks()
1759 FromBBI.NonPredSize = 0; in MergeBlocks()
1760 FromBBI.ExtraCost = 0; in MergeBlocks()
1761 FromBBI.ExtraCost2 = 0; in MergeBlocks()
1763 ToBBI.ClobbersPred |= FromBBI.ClobbersPred; in MergeBlocks()
1764 ToBBI.HasFallThrough = FromBBI.HasFallThrough; in MergeBlocks()
1766 FromBBI.IsAnalyzed = false; in MergeBlocks()