Lines Matching refs:SuccToSinkTo
135 MachineBasicBlock *SuccToSinkTo,
498 MachineBasicBlock *SuccToSinkTo, in isProfitableToSinkTo() argument
501 assert (SuccToSinkTo && "Invalid SinkTo Candidate BB"); in isProfitableToSinkTo()
503 if (MBB == SuccToSinkTo) in isProfitableToSinkTo()
507 if (!PDT->dominates(SuccToSinkTo, MBB)) in isProfitableToSinkTo()
512 if (LI->getLoopDepth(MBB) > LI->getLoopDepth(SuccToSinkTo)) in isProfitableToSinkTo()
519 if (UseBlock == SuccToSinkTo && !UseInst.isPHI()) in isProfitableToSinkTo()
530 FindSuccToSinkTo(MI, SuccToSinkTo, BreakPHIEdge, AllSuccessors)) in isProfitableToSinkTo()
531 return isProfitableToSinkTo(Reg, MI, SuccToSinkTo, MBB2, AllSuccessors); in isProfitableToSinkTo()
598 MachineBasicBlock *SuccToSinkTo = nullptr; in FindSuccToSinkTo() local
627 if (SuccToSinkTo) { in FindSuccToSinkTo()
631 if (!AllUsesDominatedByBlock(Reg, SuccToSinkTo, MBB, in FindSuccToSinkTo()
647 SuccToSinkTo = SuccBlock; in FindSuccToSinkTo()
656 if (!SuccToSinkTo) in FindSuccToSinkTo()
658 if (!isProfitableToSinkTo(Reg, MI, MBB, SuccToSinkTo, AllSuccessors)) in FindSuccToSinkTo()
665 if (MBB == SuccToSinkTo) in FindSuccToSinkTo()
670 if (SuccToSinkTo && SuccToSinkTo->isEHPad()) in FindSuccToSinkTo()
673 return SuccToSinkTo; in FindSuccToSinkTo()
704 MachineBasicBlock *SuccToSinkTo = in SinkInstruction() local
708 if (!SuccToSinkTo) in SinkInstruction()
720 if (SuccToSinkTo->isLiveIn(Reg)) in SinkInstruction()
724 DEBUG(dbgs() << "Sink instr " << *MI << "\tinto block " << *SuccToSinkTo); in SinkInstruction()
728 if (SuccToSinkTo->pred_size() > 1) { in SinkInstruction()
740 if (!TryBreak && !DT->dominates(ParentBlock, SuccToSinkTo)) { in SinkInstruction()
746 if (!TryBreak && LI->isLoopHeader(SuccToSinkTo)) { in SinkInstruction()
759 PostponeSplitCriticalEdge(MI, ParentBlock, SuccToSinkTo, BreakPHIEdge); in SinkInstruction()
773 SuccToSinkTo, BreakPHIEdge); in SinkInstruction()
782 MachineBasicBlock::iterator InsertPos = SuccToSinkTo->begin(); in SinkInstruction()
783 while (InsertPos != SuccToSinkTo->end() && InsertPos->isPHI()) in SinkInstruction()
791 SuccToSinkTo->splice(InsertPos, ParentBlock, MI, in SinkInstruction()
798 SuccToSinkTo->splice(InsertPos, ParentBlock, DbgMI, in SinkInstruction()