[llvm] [SimplifyLibCalls] Constant fold scalbxx (PR #114417)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 2 08:59:21 PDT 2024
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 eeee5a44bbf24f2f30a313ecf66e6a76de365658 0d7c62cf833fec6d5e3205a4403c75623d03586e --extensions cpp -- llvm/lib/Analysis/ConstantFolding.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index dbbd3621d5..55d5b71bb2 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -1697,9 +1697,8 @@ bool llvm::canConstantFoldCallTo(const CallBase *Call, const Function *F) {
case 's':
return Name == "scalbn" || Name == "scalbnf" || Name == "scalbnl" ||
Name == "scalbln" || Name == "scalblnf" || Name == "scalblnl" ||
- Name == "sin" || Name == "sinf" ||
- Name == "sinh" || Name == "sinhf" ||
- Name == "sqrt" || Name == "sqrtf";
+ Name == "sin" || Name == "sinf" || Name == "sinh" ||
+ Name == "sinhf" || Name == "sqrt" || Name == "sqrtf";
case 't':
return Name == "tan" || Name == "tanf" ||
Name == "tanh" || Name == "tanhf" ||
``````````
</details>
https://github.com/llvm/llvm-project/pull/114417
More information about the llvm-commits
mailing list