Lines Matching refs:MergePotentials
644 MPIterator HighestMPIter = std::prev(MergePotentials.end()); in ComputeSameTails()
645 for (MPIterator CurMPIter = std::prev(MergePotentials.end()), in ComputeSameTails()
646 B = MergePotentials.begin(); in ComputeSameTails()
678 for (CurMPIter = std::prev(MergePotentials.end()), in RemoveBlocksWithHash()
679 B = MergePotentials.begin(); in RemoveBlocksWithHash()
690 MergePotentials.erase(CurMPIter, MergePotentials.end()); in RemoveBlocksWithHash()
820 for (unsigned i = 0, e = MergePotentials.size(); i != e; ++i) in TryTailMergeBlocks()
821 dbgs() << "BB#" << MergePotentials[i].getBlock()->getNumber() in TryTailMergeBlocks()
837 array_pod_sort(MergePotentials.begin(), MergePotentials.end()); in TryTailMergeBlocks()
840 while (MergePotentials.size() > 1) { in TryTailMergeBlocks()
841 unsigned CurHash = MergePotentials.back().getHash(); in TryTailMergeBlocks()
861 &MergePotentials.front().getBlock()->getParent()->front(); in TryTailMergeBlocks()
921 MergePotentials.erase(SameTails[i].getMPIter()); in TryTailMergeBlocks()
936 MergePotentials.clear(); in TailMergeBlocks()
938 if (MergePotentials.size() == TailMergeThreshold) in TailMergeBlocks()
941 MergePotentials.push_back(MergePotentialsElt(HashEndOfMBB(&MBB), &MBB)); in TailMergeBlocks()
946 if (MergePotentials.size() == TailMergeThreshold) in TailMergeBlocks()
947 for (unsigned i = 0, e = MergePotentials.size(); i != e; ++i) in TailMergeBlocks()
948 TriedMerging.insert(MergePotentials[i].getBlock()); in TailMergeBlocks()
951 if (MergePotentials.size() >= 2) in TailMergeBlocks()
979 MergePotentials.clear(); in TailMergeBlocks()
981 if (MergePotentials.size() == TailMergeThreshold) in TailMergeBlocks()
1049 MergePotentials.push_back(MergePotentialsElt(HashEndOfMBB(PBB), PBB)); in TailMergeBlocks()
1055 if (MergePotentials.size() == TailMergeThreshold) in TailMergeBlocks()
1056 for (unsigned i = 0, e = MergePotentials.size(); i != e; ++i) in TailMergeBlocks()
1057 TriedMerging.insert(MergePotentials[i].getBlock()); in TailMergeBlocks()
1059 if (MergePotentials.size() >= 2) in TailMergeBlocks()
1065 if (MergePotentials.size() == 1 && in TailMergeBlocks()
1066 MergePotentials.begin()->getBlock() != PredBB) in TailMergeBlocks()
1067 FixTail(MergePotentials.begin()->getBlock(), IBB, TII); in TailMergeBlocks()