Lines Matching refs:BFI
260 static void cleanup(BlockFrequencyInfoImplBase &BFI) { in cleanup() argument
261 std::vector<FrequencyData> SavedFreqs(std::move(BFI.Freqs)); in cleanup()
262 BFI.clear(); in cleanup()
263 BFI.Freqs = std::move(SavedFreqs); in cleanup()
388 static void debugAssign(const BlockFrequencyInfoImplBase &BFI, in debugAssign() argument
395 dbgs() << " to " << BFI.getBlockName(T); in debugAssign()
435 static void convertFloatingToInteger(BlockFrequencyInfoImplBase &BFI, in convertFloatingToInteger() argument
461 for (size_t Index = 0; Index < BFI.Freqs.size(); ++Index) { in convertFloatingToInteger()
462 Scaled64 Scaled = BFI.Freqs[Index].Scaled * ScalingFactor; in convertFloatingToInteger()
463 BFI.Freqs[Index].Integer = std::max(UINT64_C(1), Scaled.toInt<uint64_t>()); in convertFloatingToInteger()
464 DEBUG(dbgs() << " - " << BFI.getBlockName(Index) << ": float = " in convertFloatingToInteger()
465 << BFI.Freqs[Index].Scaled << ", scaled = " << Scaled in convertFloatingToInteger()
466 << ", int = " << BFI.Freqs[Index].Integer << "\n"); in convertFloatingToInteger()
474 static void unwrapLoop(BlockFrequencyInfoImplBase &BFI, LoopData &Loop) { in unwrapLoop() argument
475 DEBUG(dbgs() << "unwrap-loop-package: " << BFI.getLoopName(Loop) in unwrapLoop()
486 const auto &Working = BFI.Working[N.Index]; in unwrapLoop()
488 : BFI.Freqs[N.Index].Scaled; in unwrapLoop()
490 DEBUG(dbgs() << " - " << BFI.getBlockName(N) << ": " << F << " => " << New in unwrapLoop()
597 for (uint32_t Index = 0; Index < BFI.Working.size(); ++Index) in addNodesInFunction()
598 if (!BFI.Working[Index].isPackaged()) in addNodesInFunction()
641 const BlockFrequencyInfoImplBase &BFI, in findIrreducibleHeaders() argument
661 DEBUG(dbgs() << " => entry = " << BFI.getBlockName(Irr.Node) << "\n"); in findIrreducibleHeaders()
692 DEBUG(dbgs() << " => extra = " << BFI.getBlockName(Irr.Node) << "\n"); in findIrreducibleHeaders()
701 DEBUG(dbgs() << " => other = " << BFI.getBlockName(Irr.Node) << "\n"); in findIrreducibleHeaders()
708 BlockFrequencyInfoImplBase &BFI, const IrreducibleGraph &G, in createIrreducibleLoop() argument
716 findIrreducibleHeaders(BFI, G, SCC, Headers, Others); in createIrreducibleLoop()
718 auto Loop = BFI.Loops.emplace(Insert, OuterLoop, Headers.begin(), in createIrreducibleLoop()
723 if (BFI.Working[N.Index].isLoopHeader()) in createIrreducibleLoop()
724 BFI.Working[N.Index].Loop->Parent = &*Loop; in createIrreducibleLoop()
726 BFI.Working[N.Index].Loop = &*Loop; in createIrreducibleLoop()