Lines Matching refs:BFI

304 static void cleanup(BlockFrequencyInfoImplBase &BFI) {  in cleanup()  argument
305 std::vector<FrequencyData> SavedFreqs(std::move(BFI.Freqs)); in cleanup()
306 SparseBitVector<> SavedIsIrrLoopHeader(std::move(BFI.IsIrrLoopHeader)); in cleanup()
307 BFI.clear(); in cleanup()
308 BFI.Freqs = std::move(SavedFreqs); in cleanup()
309 BFI.IsIrrLoopHeader = std::move(SavedIsIrrLoopHeader); in cleanup()
435 static void debugAssign(const BlockFrequencyInfoImplBase &BFI, in debugAssign() argument
442 dbgs() << " to " << BFI.getBlockName(T); in debugAssign()
482 static void convertFloatingToInteger(BlockFrequencyInfoImplBase &BFI, in convertFloatingToInteger() argument
502 for (size_t Index = 0; Index < BFI.Freqs.size(); ++Index) { in convertFloatingToInteger()
503 Scaled64 Scaled = BFI.Freqs[Index].Scaled * ScalingFactor; in convertFloatingToInteger()
504 BFI.Freqs[Index].Integer = std::max(UINT64_C(1), Scaled.toInt<uint64_t>()); in convertFloatingToInteger()
505 LLVM_DEBUG(dbgs() << " - " << BFI.getBlockName(Index) << ": float = " in convertFloatingToInteger()
506 << BFI.Freqs[Index].Scaled << ", scaled = " << Scaled in convertFloatingToInteger()
507 << ", int = " << BFI.Freqs[Index].Integer << "\n"); in convertFloatingToInteger()
515 static void unwrapLoop(BlockFrequencyInfoImplBase &BFI, LoopData &Loop) { in unwrapLoop() argument
516 LLVM_DEBUG(dbgs() << "unwrap-loop-package: " << BFI.getLoopName(Loop) in unwrapLoop()
527 const auto &Working = BFI.Working[N.Index]; in unwrapLoop()
529 : BFI.Freqs[N.Index].Scaled; in unwrapLoop()
531 LLVM_DEBUG(dbgs() << " - " << BFI.getBlockName(N) << ": " << F << " => " in unwrapLoop()
647 for (uint32_t Index = 0; Index < BFI.Working.size(); ++Index) in addNodesInFunction()
648 if (!BFI.Working[Index].isPackaged()) in addNodesInFunction()
690 const BlockFrequencyInfoImplBase &BFI, in findIrreducibleHeaders() argument
710 LLVM_DEBUG(dbgs() << " => entry = " << BFI.getBlockName(Irr.Node) in findIrreducibleHeaders()
742 LLVM_DEBUG(dbgs() << " => extra = " << BFI.getBlockName(Irr.Node) in findIrreducibleHeaders()
752 LLVM_DEBUG(dbgs() << " => other = " << BFI.getBlockName(Irr.Node) << "\n"); in findIrreducibleHeaders()
759 BlockFrequencyInfoImplBase &BFI, const IrreducibleGraph &G, in createIrreducibleLoop() argument
767 findIrreducibleHeaders(BFI, G, SCC, Headers, Others); in createIrreducibleLoop()
769 auto Loop = BFI.Loops.emplace(Insert, OuterLoop, Headers.begin(), in createIrreducibleLoop()
774 if (BFI.Working[N.Index].isLoopHeader()) in createIrreducibleLoop()
775 BFI.Working[N.Index].Loop->Parent = &*Loop; in createIrreducibleLoop()
777 BFI.Working[N.Index].Loop = &*Loop; in createIrreducibleLoop()