Lines Matching refs:SameTails

673   SameTails.clear();  in ComputeSameTails()
687 SameTails.clear(); in ComputeSameTails()
690 SameTails.push_back(SameTailElt(CurMPIter, TrialBBI1)); in ComputeSameTails()
694 SameTails.push_back(SameTailElt(I, TrialBBI2)); in ComputeSameTails()
732 for (unsigned i = 0, e = SameTails.size(); i != e; ++i) { in CreateCommonTailOnlyBlock()
734 if (SameTails[i].getBlock() == PredBB) { in CreateCommonTailOnlyBlock()
740 unsigned t = EstimateRuntime(SameTails[i].getBlock()->begin(), in CreateCommonTailOnlyBlock()
741 SameTails[i].getTailStartPos()); in CreateCommonTailOnlyBlock()
749 SameTails[commonTailIndex].getTailStartPos(); in CreateCommonTailOnlyBlock()
750 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in CreateCommonTailOnlyBlock()
768 SameTails[commonTailIndex].setBlock(newMBB); in CreateCommonTailOnlyBlock()
769 SameTails[commonTailIndex].setTailStartPos(newMBB->begin()); in CreateCommonTailOnlyBlock()
866 if (SameTails.empty()) { in TryTailMergeBlocks()
877 unsigned commonTailIndex = SameTails.size(); in TryTailMergeBlocks()
880 if (SameTails.size() == 2 && in TryTailMergeBlocks()
881 SameTails[0].getBlock()->isLayoutSuccessor(SameTails[1].getBlock()) && in TryTailMergeBlocks()
882 SameTails[1].tailIsWholeBlock()) in TryTailMergeBlocks()
884 else if (SameTails.size() == 2 && in TryTailMergeBlocks()
885 SameTails[1].getBlock()->isLayoutSuccessor( in TryTailMergeBlocks()
886 SameTails[0].getBlock()) && in TryTailMergeBlocks()
887 SameTails[0].tailIsWholeBlock()) in TryTailMergeBlocks()
892 for (unsigned i = 0, e = SameTails.size(); i != e; ++i) { in TryTailMergeBlocks()
893 MachineBasicBlock *MBB = SameTails[i].getBlock(); in TryTailMergeBlocks()
894 if (MBB == EntryBB && SameTails[i].tailIsWholeBlock()) in TryTailMergeBlocks()
900 if (SameTails[i].tailIsWholeBlock()) in TryTailMergeBlocks()
905 if (commonTailIndex == SameTails.size() || in TryTailMergeBlocks()
906 (SameTails[commonTailIndex].getBlock() == PredBB && in TryTailMergeBlocks()
907 !SameTails[commonTailIndex].tailIsWholeBlock())) { in TryTailMergeBlocks()
917 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in TryTailMergeBlocks()
926 for (unsigned int i=0, e = SameTails.size(); i != e; ++i) { in TryTailMergeBlocks()
929 DEBUG(dbgs() << "BB#" << SameTails[i].getBlock()->getNumber() in TryTailMergeBlocks()
932 mergeMMOsFromMemoryOperations(SameTails[i].getTailStartPos(), *MBB); in TryTailMergeBlocks()
934 ReplaceTailWithBranchTo(SameTails[i].getTailStartPos(), MBB); in TryTailMergeBlocks()
936 MergePotentials.erase(SameTails[i].getMPIter()); in TryTailMergeBlocks()
1110 for (const auto &Src : SameTails) { in setCommonTailEdgeWeights()