[llvm] [WIP] Emit missed- and passed-optimization messages when partially inlining sqrt (PR #123966)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 09:01:10 PST 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff ff0f1dd341cb2fdc1281a14413b3aa93bf9a20c7 4471fbbde0ed04d52e79d7a77f2e89eb4048b4a6 --extensions cpp -- llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp b/llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
index 6c4b2ca92e..6f0cc83c59 100644
--- a/llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
+++ b/llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
@@ -60,8 +60,8 @@ static bool optimizeSQRT(CallInst *Call, Function *CalledFunc,
return OptimizationRemarkMissed(DEBUG_TYPE, "BranchRequired",
Call->getDebugLoc(), CurrBB)
<< "Branch to library sqrt fn had to be inserted to satisfy the "
- "current target's requirement for math functions to set errno on "
- "invalid inputs.";
+ "current target's requirement for math functions to set errno on "
+ "invalid inputs.";
});
Type *Ty = Call->getType();
``````````
</details>
https://github.com/llvm/llvm-project/pull/123966
More information about the llvm-commits
mailing list