Lines Matching refs:SameTails

627   SameTails.clear();  in ComputeSameTails()
640 SameTails.clear(); in ComputeSameTails()
643 SameTails.push_back(SameTailElt(CurMPIter, TrialBBI1)); in ComputeSameTails()
647 SameTails.push_back(SameTailElt(I, TrialBBI2)); in ComputeSameTails()
685 for (unsigned i = 0, e = SameTails.size(); i != e; ++i) { in CreateCommonTailOnlyBlock()
687 if (SameTails[i].getBlock() == PredBB) { in CreateCommonTailOnlyBlock()
693 unsigned t = EstimateRuntime(SameTails[i].getBlock()->begin(), in CreateCommonTailOnlyBlock()
694 SameTails[i].getTailStartPos()); in CreateCommonTailOnlyBlock()
702 SameTails[commonTailIndex].getTailStartPos(); in CreateCommonTailOnlyBlock()
703 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in CreateCommonTailOnlyBlock()
721 SameTails[commonTailIndex].setBlock(newMBB); in CreateCommonTailOnlyBlock()
722 SameTails[commonTailIndex].setTailStartPos(newMBB->begin()); in CreateCommonTailOnlyBlock()
835 if (SameTails.empty()) { in TryTailMergeBlocks()
846 unsigned commonTailIndex = SameTails.size(); in TryTailMergeBlocks()
849 if (SameTails.size() == 2 && in TryTailMergeBlocks()
850 SameTails[0].getBlock()->isLayoutSuccessor(SameTails[1].getBlock()) && in TryTailMergeBlocks()
851 SameTails[1].tailIsWholeBlock()) in TryTailMergeBlocks()
853 else if (SameTails.size() == 2 && in TryTailMergeBlocks()
854 SameTails[1].getBlock()->isLayoutSuccessor( in TryTailMergeBlocks()
855 SameTails[0].getBlock()) && in TryTailMergeBlocks()
856 SameTails[0].tailIsWholeBlock()) in TryTailMergeBlocks()
861 for (unsigned i = 0, e = SameTails.size(); i != e; ++i) { in TryTailMergeBlocks()
862 MachineBasicBlock *MBB = SameTails[i].getBlock(); in TryTailMergeBlocks()
863 if (MBB == EntryBB && SameTails[i].tailIsWholeBlock()) in TryTailMergeBlocks()
869 if (SameTails[i].tailIsWholeBlock()) in TryTailMergeBlocks()
874 if (commonTailIndex == SameTails.size() || in TryTailMergeBlocks()
875 (SameTails[commonTailIndex].getBlock() == PredBB && in TryTailMergeBlocks()
876 !SameTails[commonTailIndex].tailIsWholeBlock())) { in TryTailMergeBlocks()
886 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in TryTailMergeBlocks()
895 for (unsigned int i=0, e = SameTails.size(); i != e; ++i) { in TryTailMergeBlocks()
898 DEBUG(dbgs() << "BB#" << SameTails[i].getBlock()->getNumber() in TryTailMergeBlocks()
901 removeMMOsFromMemoryOperations(SameTails[i].getTailStartPos(), *MBB); in TryTailMergeBlocks()
903 ReplaceTailWithBranchTo(SameTails[i].getTailStartPos(), MBB); in TryTailMergeBlocks()
905 MergePotentials.erase(SameTails[i].getMPIter()); in TryTailMergeBlocks()
1062 for (const auto &Src : SameTails) { in setCommonTailEdgeWeights()