Home
last modified time | relevance | path

Searched refs:SuccToSinkTo (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DSink.cpp61 bool IsAcceptableTarget(Instruction *Inst, BasicBlock *SuccToSinkTo) const;
189 BasicBlock *SuccToSinkTo) const { in IsAcceptableTarget()
191 assert(SuccToSinkTo && "Candidate sink target is null"); in IsAcceptableTarget()
195 if (Inst->getParent() == SuccToSinkTo) in IsAcceptableTarget()
200 if (SuccToSinkTo->getTerminator()->isExceptional()) in IsAcceptableTarget()
207 if (SuccToSinkTo->getUniquePredecessor() != Inst->getParent()) { in IsAcceptableTarget()
215 if (!DT->dominates(Inst->getParent(), SuccToSinkTo)) in IsAcceptableTarget()
219 Loop *succ = LI->getLoopFor(SuccToSinkTo); in IsAcceptableTarget()
227 return AllUsesDominatedByBlock(Inst, SuccToSinkTo); in IsAcceptableTarget()
255 BasicBlock *SuccToSinkTo = nullptr; in SinkInstruction() local
[all …]
/external/llvm/lib/CodeGen/
DMachineSink.cpp135 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
[all …]