Searched refs:SuccToSinkTo (Results 1 – 6 of 6) sorted by relevance
/external/llvm/lib/CodeGen/ |
D | MachineSink.cpp | 136 MachineBasicBlock *SuccToSinkTo, 497 MachineBasicBlock *SuccToSinkTo, in isProfitableToSinkTo() argument 499 assert (SuccToSinkTo && "Invalid SinkTo Candidate BB"); in isProfitableToSinkTo() 501 if (MBB == SuccToSinkTo) in isProfitableToSinkTo() 505 if (!PDT->dominates(SuccToSinkTo, MBB)) in isProfitableToSinkTo() 510 if (LI->getLoopDepth(MBB) > LI->getLoopDepth(SuccToSinkTo)) in isProfitableToSinkTo() 517 if (UseBlock == SuccToSinkTo && !UseInst.isPHI()) in isProfitableToSinkTo() 528 FindSuccToSinkTo(MI, SuccToSinkTo, BreakPHIEdge, AllSuccessors)) in isProfitableToSinkTo() 529 return isProfitableToSinkTo(Reg, MI, SuccToSinkTo, MBB2, AllSuccessors); in isProfitableToSinkTo() 594 MachineBasicBlock *SuccToSinkTo = nullptr; in FindSuccToSinkTo() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | Sink.cpp | 95 static bool IsAcceptableTarget(Instruction *Inst, BasicBlock *SuccToSinkTo, in IsAcceptableTarget() argument 98 assert(SuccToSinkTo && "Candidate sink target is null"); in IsAcceptableTarget() 102 if (Inst->getParent() == SuccToSinkTo) in IsAcceptableTarget() 107 if (SuccToSinkTo->getTerminator()->isExceptional()) in IsAcceptableTarget() 114 if (SuccToSinkTo->getUniquePredecessor() != Inst->getParent()) { in IsAcceptableTarget() 122 if (!DT.dominates(Inst->getParent(), SuccToSinkTo)) in IsAcceptableTarget() 126 Loop *succ = LI.getLoopFor(SuccToSinkTo); in IsAcceptableTarget() 134 return AllUsesDominatedByBlock(Inst, SuccToSinkTo, DT); in IsAcceptableTarget() 163 BasicBlock *SuccToSinkTo = nullptr; in SinkInstruction() local 170 I != E && SuccToSinkTo == nullptr; ++I) { in SinkInstruction() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | Sink.cpp | 95 static bool IsAcceptableTarget(Instruction *Inst, BasicBlock *SuccToSinkTo, in IsAcceptableTarget() argument 98 assert(SuccToSinkTo && "Candidate sink target is null"); in IsAcceptableTarget() 102 if (Inst->getParent() == SuccToSinkTo) in IsAcceptableTarget() 107 if (SuccToSinkTo->getTerminator()->isExceptional()) in IsAcceptableTarget() 114 if (SuccToSinkTo->getUniquePredecessor() != Inst->getParent()) { in IsAcceptableTarget() 122 if (!DT.dominates(Inst->getParent(), SuccToSinkTo)) in IsAcceptableTarget() 126 Loop *succ = LI.getLoopFor(SuccToSinkTo); in IsAcceptableTarget() 134 return AllUsesDominatedByBlock(Inst, SuccToSinkTo, DT); in IsAcceptableTarget() 163 BasicBlock *SuccToSinkTo = nullptr; in SinkInstruction() local 170 I != E && SuccToSinkTo == nullptr; ++I) { in SinkInstruction() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | MachineSink.cpp | 430 MachineBasicBlock *SuccToSinkTo = 0; in SinkInstruction() local 487 if (SuccToSinkTo) { in SinkInstruction() 491 if (!AllUsesDominatedByBlock(Reg, SuccToSinkTo, ParentBlock, in SinkInstruction() 505 SuccToSinkTo = *SI; in SinkInstruction() 514 if (SuccToSinkTo == 0) in SinkInstruction() 520 if (SuccToSinkTo == 0) in SinkInstruction() 525 if (SuccToSinkTo->isLandingPad()) in SinkInstruction() 530 if (MI->getParent() == SuccToSinkTo) in SinkInstruction() 541 if (SuccToSinkTo->isLiveIn(Reg)) in SinkInstruction() 545 DEBUG(dbgs() << "Sink instr " << *MI << "\tinto block " << *SuccToSinkTo); in SinkInstruction() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | MachineSink.cpp | 168 MachineBasicBlock *SuccToSinkTo, 538 MachineBasicBlock *SuccToSinkTo, in isProfitableToSinkTo() argument 540 assert (SuccToSinkTo && "Invalid SinkTo Candidate BB"); in isProfitableToSinkTo() 542 if (MBB == SuccToSinkTo) in isProfitableToSinkTo() 546 if (!PDT->dominates(SuccToSinkTo, MBB)) in isProfitableToSinkTo() 551 if (LI->getLoopDepth(MBB) > LI->getLoopDepth(SuccToSinkTo)) in isProfitableToSinkTo() 558 if (UseBlock == SuccToSinkTo && !UseInst.isPHI()) in isProfitableToSinkTo() 569 FindSuccToSinkTo(MI, SuccToSinkTo, BreakPHIEdge, AllSuccessors)) in isProfitableToSinkTo() 570 return isProfitableToSinkTo(Reg, MI, SuccToSinkTo, MBB2, AllSuccessors); in isProfitableToSinkTo() 634 MachineBasicBlock *SuccToSinkTo = nullptr; in FindSuccToSinkTo() local [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | Sink.cpp | 198 BasicBlock *SuccToSinkTo = 0; in SinkInstruction() local 218 SuccToSinkTo = *SI; in SinkInstruction() 224 if (SuccToSinkTo == 0) in SinkInstruction() 229 if (Inst->getParent() == SuccToSinkTo) in SinkInstruction() 234 WriteAsOperand(dbgs(), SuccToSinkTo, false)); in SinkInstruction() 240 if (SuccToSinkTo->getUniquePredecessor() != ParentBlock) { in SinkInstruction() 250 if (!DT->dominates(ParentBlock, SuccToSinkTo)) { in SinkInstruction() 256 if (LI->isLoopHeader(SuccToSinkTo)) { in SinkInstruction() 266 BasicBlock::iterator InsertPos = SuccToSinkTo->begin(); in SinkInstruction() 267 while (InsertPos != SuccToSinkTo->end() && isa<PHINode>(InsertPos)) in SinkInstruction()
|