[llvm] [PartiallyInlineLibCalls] Emit missed- and passed-optimization remarks when partially inlining sqrt (PR #123966)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon May 5 06:03:26 PDT 2025


================
@@ -56,6 +56,20 @@ static bool optimizeSQRT(CallInst *Call, Function *CalledFunc,
   // dst = phi(v0, v1)
   //
 
+  ORE->emit([&]() {
+    return OptimizationRemark(DEBUG_TYPE, "SqrtPartiallyInlined",
+                              Call->getDebugLoc(), &CurrBB)
+           << "Partially inlined call to sqrt function despite having to use "
----------------
arsenm wrote:

Messages should start with lowercase 

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


More information about the llvm-commits mailing list