Lines Matching refs:LoopChain

274   void rotateLoop(BlockChain &LoopChain, MachineBasicBlock *ExitingBB,
276 void rotateLoopWithProfile(BlockChain &LoopChain, MachineLoop &L,
803 void MachineBlockPlacement::rotateLoop(BlockChain &LoopChain, in rotateLoop() argument
809 MachineBasicBlock *Top = *LoopChain.begin(); in rotateLoop()
824 MachineBasicBlock *Bottom = *std::prev(LoopChain.end()); in rotateLoop()
834 std::find(LoopChain.begin(), LoopChain.end(), ExitingBB); in rotateLoop()
835 if (ExitIt == LoopChain.end()) in rotateLoop()
838 std::rotate(LoopChain.begin(), std::next(ExitIt), LoopChain.end()); in rotateLoop()
855 BlockChain &LoopChain, MachineLoop &L, const BlockFilterSet &LoopBlockSet) { in rotateLoopWithProfile() argument
857 auto HeaderIter = std::find(LoopChain.begin(), LoopChain.end(), HeaderBB); in rotateLoopWithProfile()
858 auto RotationPos = LoopChain.end(); in rotateLoopWithProfile()
897 for (auto BB : LoopChain) { in rotateLoopWithProfile()
916 for (auto Iter = LoopChain.begin(), TailIter = std::prev(LoopChain.end()), in rotateLoopWithProfile()
917 EndIter = LoopChain.end(); in rotateLoopWithProfile()
921 if (TailIter == LoopChain.end()) in rotateLoopWithProfile()
922 TailIter = LoopChain.begin(); in rotateLoopWithProfile()
980 if (RotationPos != LoopChain.end()) { in rotateLoopWithProfile()
983 std::rotate(LoopChain.begin(), RotationPos, LoopChain.end()); in rotateLoopWithProfile()
1060 BlockChain &LoopChain = *BlockToChain[LoopTop]; in buildLoopChains() local
1066 assert(LoopChain.LoopPredecessors == 0); in buildLoopChains()
1067 UpdatedPreds.insert(&LoopChain); in buildLoopChains()
1088 buildChain(LoopTop, LoopChain, BlockWorkList, &LoopBlockSet); in buildLoopChains()
1091 rotateLoopWithProfile(LoopChain, L, LoopBlockSet); in buildLoopChains()
1093 rotateLoop(LoopChain, ExitingBB, LoopBlockSet); in buildLoopChains()
1098 if (LoopChain.LoopPredecessors) { in buildLoopChains()
1102 << " Chain header: " << getBlockName(*LoopChain.begin()) << "\n"; in buildLoopChains()
1104 for (MachineBasicBlock *ChainBB : LoopChain) { in buildLoopChains()
1112 << " Chain header: " << getBlockName(*LoopChain.begin()) << "\n" in buildLoopChains()
1122 << " Chain header: " << getBlockName(*LoopChain.begin()) << "\n" in buildLoopChains()