Lines Matching refs:SameTails

642   SameTails.clear();  in ComputeSameTails()
656 SameTails.clear(); in ComputeSameTails()
659 SameTails.push_back(SameTailElt(CurMPIter, TrialBBI1)); in ComputeSameTails()
663 SameTails.push_back(SameTailElt(I, TrialBBI2)); in ComputeSameTails()
701 for (unsigned i = 0, e = SameTails.size(); i != e; ++i) { in CreateCommonTailOnlyBlock()
703 if (SameTails[i].getBlock() == PredBB) { in CreateCommonTailOnlyBlock()
709 unsigned t = EstimateRuntime(SameTails[i].getBlock()->begin(), in CreateCommonTailOnlyBlock()
710 SameTails[i].getTailStartPos()); in CreateCommonTailOnlyBlock()
718 SameTails[commonTailIndex].getTailStartPos(); in CreateCommonTailOnlyBlock()
719 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in CreateCommonTailOnlyBlock()
737 SameTails[commonTailIndex].setBlock(newMBB); in CreateCommonTailOnlyBlock()
738 SameTails[commonTailIndex].setTailStartPos(newMBB->begin()); in CreateCommonTailOnlyBlock()
851 if (SameTails.empty()) { in TryTailMergeBlocks()
862 unsigned commonTailIndex = SameTails.size(); in TryTailMergeBlocks()
865 if (SameTails.size() == 2 && in TryTailMergeBlocks()
866 SameTails[0].getBlock()->isLayoutSuccessor(SameTails[1].getBlock()) && in TryTailMergeBlocks()
867 SameTails[1].tailIsWholeBlock()) in TryTailMergeBlocks()
869 else if (SameTails.size() == 2 && in TryTailMergeBlocks()
870 SameTails[1].getBlock()->isLayoutSuccessor( in TryTailMergeBlocks()
871 SameTails[0].getBlock()) && in TryTailMergeBlocks()
872 SameTails[0].tailIsWholeBlock()) in TryTailMergeBlocks()
877 for (unsigned i = 0, e = SameTails.size(); i != e; ++i) { in TryTailMergeBlocks()
878 MachineBasicBlock *MBB = SameTails[i].getBlock(); in TryTailMergeBlocks()
879 if (MBB == EntryBB && SameTails[i].tailIsWholeBlock()) in TryTailMergeBlocks()
885 if (SameTails[i].tailIsWholeBlock()) in TryTailMergeBlocks()
890 if (commonTailIndex == SameTails.size() || in TryTailMergeBlocks()
891 (SameTails[commonTailIndex].getBlock() == PredBB && in TryTailMergeBlocks()
892 !SameTails[commonTailIndex].tailIsWholeBlock())) { in TryTailMergeBlocks()
902 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in TryTailMergeBlocks()
911 for (unsigned int i=0, e = SameTails.size(); i != e; ++i) { in TryTailMergeBlocks()
914 DEBUG(dbgs() << "BB#" << SameTails[i].getBlock()->getNumber() in TryTailMergeBlocks()
917 removeMMOsFromMemoryOperations(SameTails[i].getTailStartPos(), *MBB); in TryTailMergeBlocks()
919 ReplaceTailWithBranchTo(SameTails[i].getTailStartPos(), MBB); in TryTailMergeBlocks()
921 MergePotentials.erase(SameTails[i].getMPIter()); in TryTailMergeBlocks()
1080 for (const auto &Src : SameTails) { in setCommonTailEdgeWeights()