Lines Matching refs:LoopChain

462       BlockChain &LoopChain, const MachineBasicBlock *ExitingBB,
465 BlockChain &LoopChain, const MachineLoop &L,
1956 void MachineBlockPlacement::rotateLoop(BlockChain &LoopChain, in rotateLoop() argument
1962 MachineBasicBlock *Top = *LoopChain.begin(); in rotateLoop()
1963 MachineBasicBlock *Bottom = *std::prev(LoopChain.end()); in rotateLoop()
1991 BlockChain::iterator ExitIt = llvm::find(LoopChain, ExitingBB); in rotateLoop()
1992 if (ExitIt == LoopChain.end()) in rotateLoop()
2015 assert(std::next(ExitIt) != LoopChain.end() && in rotateLoop()
2025 std::rotate(LoopChain.begin(), std::next(ExitIt), LoopChain.end()); in rotateLoop()
2042 BlockChain &LoopChain, const MachineLoop &L, in rotateLoopWithProfile() argument
2045 auto HeaderIter = llvm::find(LoopChain, HeaderBB); in rotateLoopWithProfile()
2046 auto RotationPos = LoopChain.end(); in rotateLoopWithProfile()
2085 for (auto BB : LoopChain) { in rotateLoopWithProfile()
2104 for (auto Iter = LoopChain.begin(), TailIter = std::prev(LoopChain.end()), in rotateLoopWithProfile()
2105 EndIter = LoopChain.end(); in rotateLoopWithProfile()
2109 if (TailIter == LoopChain.end()) in rotateLoopWithProfile()
2110 TailIter = LoopChain.begin(); in rotateLoopWithProfile()
2169 if (RotationPos != LoopChain.end()) { in rotateLoopWithProfile()
2172 std::rotate(LoopChain.begin(), RotationPos, LoopChain.end()); in rotateLoopWithProfile()
2255 BlockChain &LoopChain = *BlockToChain[LoopTop]; in buildLoopChains() local
2261 assert(LoopChain.UnscheduledPredecessors == 0 && in buildLoopChains()
2263 UpdatedPreds.insert(&LoopChain); in buildLoopChains()
2268 buildChain(LoopTop, LoopChain, &LoopBlockSet); in buildLoopChains()
2271 rotateLoopWithProfile(LoopChain, L, LoopBlockSet); in buildLoopChains()
2273 rotateLoop(LoopChain, PreferredLoopExit, LoopBlockSet); in buildLoopChains()
2278 if (LoopChain.UnscheduledPredecessors) { in buildLoopChains()
2282 << " Chain header: " << getBlockName(*LoopChain.begin()) << "\n"; in buildLoopChains()
2284 for (MachineBasicBlock *ChainBB : LoopChain) { in buildLoopChains()
2292 << " Chain header: " << getBlockName(*LoopChain.begin()) << "\n" in buildLoopChains()
2302 << " Chain header: " << getBlockName(*LoopChain.begin()) << "\n" in buildLoopChains()