Lines Matching refs:LoopBlockSet
269 const BlockFilterSet &LoopBlockSet);
271 const BlockFilterSet &LoopBlockSet);
275 const BlockFilterSet &LoopBlockSet);
277 const BlockFilterSet &LoopBlockSet);
639 const BlockFilterSet &LoopBlockSet) { in findBestLoopTop() argument
644 if (!LoopBlockSet.count(*HeaderChain.begin())) in findBestLoopTop()
653 if (!LoopBlockSet.count(Pred)) in findBestLoopTop()
691 const BlockFilterSet &LoopBlockSet) { in findBestLoopExit() argument
701 if (!LoopBlockSet.count(*HeaderChain.begin())) in findBestLoopExit()
742 if (LoopBlockSet.count(Succ)) { in findBestLoopExit()
805 const BlockFilterSet &LoopBlockSet) { in rotateLoop() argument
813 if (!LoopBlockSet.count(Pred) && in rotateLoop()
827 if (!LoopBlockSet.count(Succ) && in rotateLoop()
855 BlockChain &LoopChain, MachineLoop &L, const BlockFilterSet &LoopBlockSet) { in rotateLoopWithProfile() argument
879 if (!LoopBlockSet.count(Pred) && in rotateLoopWithProfile()
901 if (!LoopBlockSet.count(Succ) && in rotateLoopWithProfile()
993 BlockFilterSet LoopBlockSet; in collectLoopBlockSet() local
1015 LoopBlockSet.insert(LoopBB); in collectLoopBlockSet()
1018 LoopBlockSet.insert(L.block_begin(), L.block_end()); in collectLoopBlockSet()
1020 return LoopBlockSet; in collectLoopBlockSet()
1037 BlockFilterSet LoopBlockSet = collectLoopBlockSet(F, L); in buildLoopChains() local
1051 RotateLoopWithProfile ? L.getHeader() : findBestLoopTop(L, LoopBlockSet); in buildLoopChains()
1058 ExitingBB = findBestLoopExit(F, L, LoopBlockSet); in buildLoopChains()
1069 for (MachineBasicBlock *LoopBB : LoopBlockSet) { in buildLoopChains()
1078 if (BlockToChain[Pred] == &Chain || !LoopBlockSet.count(Pred)) in buildLoopChains()
1088 buildChain(LoopTop, LoopChain, BlockWorkList, &LoopBlockSet); in buildLoopChains()
1091 rotateLoopWithProfile(LoopChain, L, LoopBlockSet); in buildLoopChains()
1093 rotateLoop(LoopChain, ExitingBB, LoopBlockSet); in buildLoopChains()
1106 if (!LoopBlockSet.erase(ChainBB)) { in buildLoopChains()
1117 if (!LoopBlockSet.empty()) { in buildLoopChains()
1119 for (MachineBasicBlock *LoopBB : LoopBlockSet) in buildLoopChains()