[lld] [llvm] [InstrProf] No linkage prefixes in IRPGO names (PR #76994)
    Mingming Liu via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jan  4 12:31:22 PST 2024
    
    
  
================
@@ -330,7 +303,17 @@ static std::optional<std::string> lookupPGONameFromMetadata(MDNode *MD) {
   return {};
 }
 
-// Returns the PGO object name. This function has some special handling
+// The PGO name has the format [<filepath>;]<function-name> where <filepath>; is
----------------
minglotus-6 wrote:
nit: `s/<function-name>/<mangled-name>` since `getIRPGOObjectName` might be called on non-function objects (e.g., global variables).
https://github.com/llvm/llvm-project/pull/76994
    
    
More information about the llvm-commits
mailing list