Lines Matching defs:Region
284 /// Get the benefit score of outlining \p Region.
285 static InstructionCost getOutliningBenefit(ArrayRef<BasicBlock *> Region,
290 for (BasicBlock *BB : Region)
299 /// Get the penalty score for outlining \p Region.
300 static int getOutliningPenalty(ArrayRef<BasicBlock *> Region,
314 for (BasicBlock *BB : Region) {
323 if (!is_contained(Region, SuccBB)) {
341 if (llvm::is_contained(Region, PN.getIncomingBlock(i))) {
374 LLVM_DEBUG(dbgs() << "Applying bonus for: " << Region.size()
376 Penalty -= Region.size();
390 // Determine if it is beneficial to split the \p Region.
392 const BlockSequence &Region,
394 assert(!Region.empty());
400 InstructionCost OutliningBenefit = getOutliningBenefit(Region, TTI);
402 getOutliningPenalty(Region, Inputs.size(), Outputs.size());
437 LLVM_DEBUG(llvm::dbgs() << "Outlined Region: " << *OutF);
703 for (OutliningRegion &Region : Regions) {
704 if (Region.empty())
707 if (Region.isEntireFunctionCold()) {
713 BlockSequence SubRegion = Region.takeSingleEntrySubRegion(*DT);
755 } while (!Region.empty());