• Home
  • Raw
  • Download

Lines Matching refs:ChainBB

207     for (MachineBasicBlock *ChainBB : *Chain) {  in merge()
208 Blocks.push_back(ChainBB); in merge()
209 assert(BlockToChain[ChainBB] == Chain && "Incoming blocks not in chain"); in merge()
210 BlockToChain[ChainBB] = this; in merge()
817 for (MachineBasicBlock *ChainBB : Chain) { in fillWorkLists()
818 assert(BlockToChain[ChainBB] == &Chain); in fillWorkLists()
819 for (MachineBasicBlock *Pred : ChainBB->predecessors()) { in fillWorkLists()
1354 for (MachineBasicBlock *ChainBB : LoopChain) { in buildLoopChains()
1355 dbgs() << " ... " << getBlockName(ChainBB) << "\n"; in buildLoopChains()
1356 if (!LoopBlockSet.erase(ChainBB)) { in buildLoopChains()
1363 << " Bad block: " << getBlockName(ChainBB) << "\n"; in buildLoopChains()
1465 for (MachineBasicBlock *ChainBB : FunctionChain) in buildCFGChains()
1466 if (!FunctionBlockSet.erase(ChainBB)) { in buildCFGChains()
1469 << " Bad block: " << getBlockName(ChainBB) << "\n"; in buildCFGChains()
1484 for (MachineBasicBlock *ChainBB : FunctionChain) { in buildCFGChains()
1485 DEBUG(dbgs() << (ChainBB == *FunctionChain.begin() ? "Placing chain " in buildCFGChains()
1487 << getBlockName(ChainBB) << "\n"); in buildCFGChains()
1488 if (InsertPos != MachineFunction::iterator(ChainBB)) in buildCFGChains()
1489 F->splice(InsertPos, ChainBB); in buildCFGChains()
1494 if (ChainBB == *FunctionChain.begin()) in buildCFGChains()
1496 MachineBasicBlock *PrevBB = &*std::prev(MachineFunction::iterator(ChainBB)); in buildCFGChains()
1549 for (MachineBasicBlock *ChainBB : FunctionChain) { in optimizeBranches()
1552 if (!TII->analyzeBranch(*ChainBB, TBB, FBB, Cond, /*AllowModify*/ true)) { in optimizeBranches()
1556 MBPI->getEdgeProbability(ChainBB, FBB) > in optimizeBranches()
1557 MBPI->getEdgeProbability(ChainBB, TBB) && in optimizeBranches()
1560 << getBlockName(ChainBB) << "\n"); in optimizeBranches()
1562 << MBPI->getEdgeProbability(ChainBB, FBB) << " vs " in optimizeBranches()
1563 << MBPI->getEdgeProbability(ChainBB, TBB) << "\n"); in optimizeBranches()
1565 TII->RemoveBranch(*ChainBB); in optimizeBranches()
1566 TII->InsertBranch(*ChainBB, FBB, TBB, Cond, dl); in optimizeBranches()
1567 ChainBB->updateTerminator(); in optimizeBranches()
1588 for (MachineBasicBlock *ChainBB : FunctionChain) { in alignBlocks()
1589 if (ChainBB == *FunctionChain.begin()) in alignBlocks()
1596 MachineLoop *L = MLI->getLoopFor(ChainBB); in alignBlocks()
1606 BlockFrequency Freq = MBFI->getBlockFreq(ChainBB); in alignBlocks()
1620 &*std::prev(MachineFunction::iterator(ChainBB)); in alignBlocks()
1624 if (!LayoutPred->isSuccessor(ChainBB)) { in alignBlocks()
1625 ChainBB->setAlignment(Align); in alignBlocks()
1634 MBPI->getEdgeProbability(LayoutPred, ChainBB); in alignBlocks()
1637 ChainBB->setAlignment(Align); in alignBlocks()