Lines Matching refs:ToBBI
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
1659 MachineFunction &MF = *ToBBI.BB->getParent(); in CopyAndPredicateBlock()
1667 ToBBI.BB->insert(ToBBI.BB->end(), MI); in CopyAndPredicateBlock()
1668 ToBBI.NonPredSize++; in CopyAndPredicateBlock()
1672 ToBBI.ExtraCost += NumCycles-1; in CopyAndPredicateBlock()
1673 ToBBI.ExtraCost2 += ExtraPredCost; in CopyAndPredicateBlock()
1704 ToBBI.BB->addSuccessor(Succ); in CopyAndPredicateBlock()
1708 ToBBI.Predicate.append(FromBBI.Predicate.begin(), FromBBI.Predicate.end()); in CopyAndPredicateBlock()
1709 ToBBI.Predicate.append(Cond.begin(), Cond.end()); in CopyAndPredicateBlock()
1711 ToBBI.ClobbersPred |= FromBBI.ClobbersPred; in CopyAndPredicateBlock()
1712 ToBBI.IsAnalyzed = false; in CopyAndPredicateBlock()
1722 void IfConverter::MergeBlocks(BBInfo &ToBBI, BBInfo &FromBBI, bool AddEdges) { in MergeBlocks() argument
1729 MachineBasicBlock::iterator ToTI = ToBBI.BB->getFirstTerminator(); in MergeBlocks()
1730 ToBBI.BB->splice(ToTI, FromBBI.BB, FromBBI.BB->begin(), FromTI); in MergeBlocks()
1734 ToTI = ToBBI.BB->end(); in MergeBlocks()
1735 ToBBI.BB->splice(ToTI, FromBBI.BB, FromTI, FromBBI.BB->end()); in MergeBlocks()
1741 ToBBI.BB->normalizeSuccProbs(); in MergeBlocks()
1750 if (AddEdges && ToBBI.BB->isSuccessor(FromBBI.BB)) { in MergeBlocks()
1751 To2FromProb = MBPI->getEdgeProbability(ToBBI.BB, FromBBI.BB); in MergeBlocks()
1755 ToBBI.BB->setSuccProbability( in MergeBlocks()
1756 std::find(ToBBI.BB->succ_begin(), ToBBI.BB->succ_end(), FromBBI.BB), in MergeBlocks()
1808 if (ToBBI.BB->isSuccessor(Succ)) in MergeBlocks()
1809 ToBBI.BB->setSuccProbability( in MergeBlocks()
1810 std::find(ToBBI.BB->succ_begin(), ToBBI.BB->succ_end(), Succ), in MergeBlocks()
1811 MBPI->getEdgeProbability(ToBBI.BB, Succ) + NewProb); in MergeBlocks()
1813 ToBBI.BB->addSuccessor(Succ, NewProb); in MergeBlocks()
1823 ToBBI.BB->normalizeSuccProbs(); in MergeBlocks()
1825 ToBBI.Predicate.append(FromBBI.Predicate.begin(), FromBBI.Predicate.end()); in MergeBlocks()
1828 ToBBI.NonPredSize += FromBBI.NonPredSize; in MergeBlocks()
1829 ToBBI.ExtraCost += FromBBI.ExtraCost; in MergeBlocks()
1830 ToBBI.ExtraCost2 += FromBBI.ExtraCost2; in MergeBlocks()
1835 ToBBI.ClobbersPred |= FromBBI.ClobbersPred; in MergeBlocks()
1836 ToBBI.HasFallThrough = FromBBI.HasFallThrough; in MergeBlocks()
1837 ToBBI.IsAnalyzed = false; in MergeBlocks()