Lines Matching refs:SameTails
589 SameTails.clear(); in ComputeSameTails()
603 SameTails.clear(); in ComputeSameTails()
606 SameTails.push_back(SameTailElt(CurMPIter, TrialBBI1)); in ComputeSameTails()
610 SameTails.push_back(SameTailElt(I, TrialBBI2)); in ComputeSameTails()
647 for (unsigned i = 0, e = SameTails.size(); i != e; ++i) { in CreateCommonTailOnlyBlock()
649 if (SameTails[i].getBlock() == PredBB) { in CreateCommonTailOnlyBlock()
655 unsigned t = EstimateRuntime(SameTails[i].getBlock()->begin(), in CreateCommonTailOnlyBlock()
656 SameTails[i].getTailStartPos()); in CreateCommonTailOnlyBlock()
664 SameTails[commonTailIndex].getTailStartPos(); in CreateCommonTailOnlyBlock()
665 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in CreateCommonTailOnlyBlock()
678 SameTails[commonTailIndex].setBlock(newMBB); in CreateCommonTailOnlyBlock()
679 SameTails[commonTailIndex].setTailStartPos(newMBB->begin()); in CreateCommonTailOnlyBlock()
736 if (SameTails.empty()) { in TryTailMergeBlocks()
747 unsigned commonTailIndex = SameTails.size(); in TryTailMergeBlocks()
750 if (SameTails.size() == 2 && in TryTailMergeBlocks()
751 SameTails[0].getBlock()->isLayoutSuccessor(SameTails[1].getBlock()) && in TryTailMergeBlocks()
752 SameTails[1].tailIsWholeBlock()) in TryTailMergeBlocks()
754 else if (SameTails.size() == 2 && in TryTailMergeBlocks()
755 SameTails[1].getBlock()->isLayoutSuccessor( in TryTailMergeBlocks()
756 SameTails[0].getBlock()) && in TryTailMergeBlocks()
757 SameTails[0].tailIsWholeBlock()) in TryTailMergeBlocks()
762 for (unsigned i = 0, e = SameTails.size(); i != e; ++i) { in TryTailMergeBlocks()
763 MachineBasicBlock *MBB = SameTails[i].getBlock(); in TryTailMergeBlocks()
764 if (MBB == EntryBB && SameTails[i].tailIsWholeBlock()) in TryTailMergeBlocks()
770 if (SameTails[i].tailIsWholeBlock()) in TryTailMergeBlocks()
775 if (commonTailIndex == SameTails.size() || in TryTailMergeBlocks()
776 (SameTails[commonTailIndex].getBlock() == PredBB && in TryTailMergeBlocks()
777 !SameTails[commonTailIndex].tailIsWholeBlock())) { in TryTailMergeBlocks()
787 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in TryTailMergeBlocks()
792 for (unsigned int i=0, e = SameTails.size(); i != e; ++i) { in TryTailMergeBlocks()
795 DEBUG(dbgs() << "BB#" << SameTails[i].getBlock()->getNumber() in TryTailMergeBlocks()
798 ReplaceTailWithBranchTo(SameTails[i].getTailStartPos(), MBB); in TryTailMergeBlocks()
800 MergePotentials.erase(SameTails[i].getMPIter()); in TryTailMergeBlocks()