[llvm] Store GUIDs in metadata (PR #133682)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 28 10:34:46 PDT 2025


================
@@ -791,6 +792,7 @@ PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level,
 void PassBuilder::addRequiredLTOPreLinkPasses(ModulePassManager &MPM) {
   MPM.addPass(CanonicalizeAliasesPass());
   MPM.addPass(NameAnonGlobalPass());
+  MPM.addPass(AssignGUIDPass());
----------------
mtrofin wrote:

this should be added as early as possible, so that (for example) PGO passes can use it. CtxProf definitely needs the GUID present. 

https://github.com/llvm/llvm-project/pull/133682


More information about the llvm-commits mailing list