Lines Matching defs:MST
1 //===-- PGOInstrumentation.cpp - MST-based PGO Instrumentation ------------===//
44 // The MST implementation is in Class CFGMST (CFGMST.h).
166 /// \brief An MST based instrumentation for PGO
168 /// Implements a Minimum Spanning Tree (MST) based instrumentation for PGO
216 CFGMST<Edge, BBInfo> MST;
223 BBInfo &getBBInfo(const BasicBlock *BB) const { return MST.getBBInfo(BB); }
227 MST.dumpEdges(dbgs(), Twine("Dump Function ") + FuncName + " Hash: " +
234 : F(Func), FunctionHash(0), MST(F, BPI, BFI) {
239 NumOfPGOBB += MST.BBInfos.size();
240 for (auto &E : MST.AllEdges) {
269 FunctionHash = (uint64_t)MST.AllEdges.size() << 32 | JC.getCRC();
308 // Visit all edge and instrument the edges not in MST.
315 for (auto &E : FuncInfo.MST.AllEdges) {
321 for (auto &E : FuncInfo.MST.AllEdges) {
465 for (auto &E : FuncInfo.MST.AllEdges)
484 PGOUseEdge &NewEdge = FuncInfo.MST.addEdge(SrcBB, InstrBB, 0);
487 PGOUseEdge &NewEdge1 = FuncInfo.MST.addEdge(InstrBB, DestBB, 0);
552 for (auto &E : FuncInfo.MST.AllEdges) {