Lines Matching refs:FromBBI
223 void CopyAndPredicateBlock(BBInfo &ToBBI, BBInfo &FromBBI,
226 void MergeBlocks(BBInfo &ToBBI, BBInfo &FromBBI, bool AddEdges = true);
1656 void IfConverter::CopyAndPredicateBlock(BBInfo &ToBBI, BBInfo &FromBBI, in CopyAndPredicateBlock() argument
1661 for (auto &I : *FromBBI.BB) { in CopyAndPredicateBlock()
1694 std::vector<MachineBasicBlock *> Succs(FromBBI.BB->succ_begin(), in CopyAndPredicateBlock()
1695 FromBBI.BB->succ_end()); in CopyAndPredicateBlock()
1696 MachineBasicBlock *NBB = getNextBlock(FromBBI.BB); in CopyAndPredicateBlock()
1697 MachineBasicBlock *FallThrough = FromBBI.HasFallThrough ? NBB : nullptr; in CopyAndPredicateBlock()
1708 ToBBI.Predicate.append(FromBBI.Predicate.begin(), FromBBI.Predicate.end()); in CopyAndPredicateBlock()
1711 ToBBI.ClobbersPred |= FromBBI.ClobbersPred; in CopyAndPredicateBlock()
1722 void IfConverter::MergeBlocks(BBInfo &ToBBI, BBInfo &FromBBI, bool AddEdges) { in MergeBlocks() argument
1723 assert(!FromBBI.BB->hasAddressTaken() && in MergeBlocks()
1728 MachineBasicBlock::iterator FromTI = FromBBI.BB->getFirstTerminator(); in MergeBlocks()
1730 ToBBI.BB->splice(ToTI, FromBBI.BB, FromBBI.BB->begin(), FromTI); in MergeBlocks()
1733 if (FromTI != FromBBI.BB->end() && !TII->isPredicated(*FromTI)) in MergeBlocks()
1735 ToBBI.BB->splice(ToTI, FromBBI.BB, FromTI, FromBBI.BB->end()); in MergeBlocks()
1743 SmallVector<MachineBasicBlock *, 4> FromSuccs(FromBBI.BB->succ_begin(), in MergeBlocks()
1744 FromBBI.BB->succ_end()); in MergeBlocks()
1745 MachineBasicBlock *NBB = getNextBlock(FromBBI.BB); in MergeBlocks()
1746 MachineBasicBlock *FallThrough = FromBBI.HasFallThrough ? NBB : nullptr; in MergeBlocks()
1750 if (AddEdges && ToBBI.BB->isSuccessor(FromBBI.BB)) { in MergeBlocks()
1751 To2FromProb = MBPI->getEdgeProbability(ToBBI.BB, FromBBI.BB); in MergeBlocks()
1756 std::find(ToBBI.BB->succ_begin(), ToBBI.BB->succ_end(), FromBBI.BB), in MergeBlocks()
1772 NewProb = MBPI->getEdgeProbability(FromBBI.BB, Succ); in MergeBlocks()
1783 FromBBI.BB->removeSuccessor(Succ); in MergeBlocks()
1818 if (NBB && !FromBBI.BB->isSuccessor(NBB)) in MergeBlocks()
1819 FromBBI.BB->addSuccessor(NBB); in MergeBlocks()
1825 ToBBI.Predicate.append(FromBBI.Predicate.begin(), FromBBI.Predicate.end()); in MergeBlocks()
1826 FromBBI.Predicate.clear(); in MergeBlocks()
1828 ToBBI.NonPredSize += FromBBI.NonPredSize; in MergeBlocks()
1829 ToBBI.ExtraCost += FromBBI.ExtraCost; in MergeBlocks()
1830 ToBBI.ExtraCost2 += FromBBI.ExtraCost2; in MergeBlocks()
1831 FromBBI.NonPredSize = 0; in MergeBlocks()
1832 FromBBI.ExtraCost = 0; in MergeBlocks()
1833 FromBBI.ExtraCost2 = 0; in MergeBlocks()
1835 ToBBI.ClobbersPred |= FromBBI.ClobbersPred; in MergeBlocks()
1836 ToBBI.HasFallThrough = FromBBI.HasFallThrough; in MergeBlocks()
1838 FromBBI.IsAnalyzed = false; in MergeBlocks()