[llvm] Optionally print `!prof` metadata inline (PR #130303)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 7 09:00:58 PST 2025


================
@@ -4161,6 +4165,11 @@ void AssemblyWriter::printFunction(const Function *F) {
     writeOperand(F->getPersonalityFn(), /*PrintType=*/true);
   }
 
+  if (PrintPerfData && F->getEntryCount()) {
----------------
mtrofin wrote:

done

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


More information about the llvm-commits mailing list