• Home
  • Raw
  • Download

Lines Matching refs:BFI

288 static void cleanup(BlockFrequencyInfoImplBase &BFI) {  in cleanup()  argument
289 std::vector<FrequencyData> SavedFreqs(std::move(BFI.Freqs)); in cleanup()
290 SparseBitVector<> SavedIsIrrLoopHeader(std::move(BFI.IsIrrLoopHeader)); in cleanup()
291 BFI.clear(); in cleanup()
292 BFI.Freqs = std::move(SavedFreqs); in cleanup()
293 BFI.IsIrrLoopHeader = std::move(SavedIsIrrLoopHeader); in cleanup()
419 static void debugAssign(const BlockFrequencyInfoImplBase &BFI, in debugAssign() argument
426 dbgs() << " to " << BFI.getBlockName(T); in debugAssign()
466 static void convertFloatingToInteger(BlockFrequencyInfoImplBase &BFI, in convertFloatingToInteger() argument
492 for (size_t Index = 0; Index < BFI.Freqs.size(); ++Index) { in convertFloatingToInteger()
493 Scaled64 Scaled = BFI.Freqs[Index].Scaled * ScalingFactor; in convertFloatingToInteger()
494 BFI.Freqs[Index].Integer = std::max(UINT64_C(1), Scaled.toInt<uint64_t>()); in convertFloatingToInteger()
495 LLVM_DEBUG(dbgs() << " - " << BFI.getBlockName(Index) << ": float = " in convertFloatingToInteger()
496 << BFI.Freqs[Index].Scaled << ", scaled = " << Scaled in convertFloatingToInteger()
497 << ", int = " << BFI.Freqs[Index].Integer << "\n"); in convertFloatingToInteger()
505 static void unwrapLoop(BlockFrequencyInfoImplBase &BFI, LoopData &Loop) { in unwrapLoop() argument
506 LLVM_DEBUG(dbgs() << "unwrap-loop-package: " << BFI.getLoopName(Loop) in unwrapLoop()
517 const auto &Working = BFI.Working[N.Index]; in unwrapLoop()
519 : BFI.Freqs[N.Index].Scaled; in unwrapLoop()
521 LLVM_DEBUG(dbgs() << " - " << BFI.getBlockName(N) << ": " << F << " => " in unwrapLoop()
655 for (uint32_t Index = 0; Index < BFI.Working.size(); ++Index) in addNodesInFunction()
656 if (!BFI.Working[Index].isPackaged()) in addNodesInFunction()
698 const BlockFrequencyInfoImplBase &BFI, in findIrreducibleHeaders() argument
718 LLVM_DEBUG(dbgs() << " => entry = " << BFI.getBlockName(Irr.Node) in findIrreducibleHeaders()
750 LLVM_DEBUG(dbgs() << " => extra = " << BFI.getBlockName(Irr.Node) in findIrreducibleHeaders()
760 LLVM_DEBUG(dbgs() << " => other = " << BFI.getBlockName(Irr.Node) << "\n"); in findIrreducibleHeaders()
767 BlockFrequencyInfoImplBase &BFI, const IrreducibleGraph &G, in createIrreducibleLoop() argument
775 findIrreducibleHeaders(BFI, G, SCC, Headers, Others); in createIrreducibleLoop()
777 auto Loop = BFI.Loops.emplace(Insert, OuterLoop, Headers.begin(), in createIrreducibleLoop()
782 if (BFI.Working[N.Index].isLoopHeader()) in createIrreducibleLoop()
783 BFI.Working[N.Index].Loop->Parent = &*Loop; in createIrreducibleLoop()
785 BFI.Working[N.Index].Loop = &*Loop; in createIrreducibleLoop()