[llvm] [InstCombine] Handle more even/odd math functions (PR #81324)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 10 03:17:18 PST 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 8884ba43a8485bebef5c4d41e7ed457e3fa84f07 6466a0d7156215837bca530f0ac2d0859516e221 -- llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
index 0cfd43c722..3a2c4682c3 100644
--- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -2784,7 +2784,8 @@ static bool insertSinCosCall(IRBuilderBase &B, Function *OrigCallee, Value *Arg,
return true;
}
-static Value *optimizeSymmetricCall(CallInst *CI, bool IsEven, IRBuilderBase &B) {
+static Value *optimizeSymmetricCall(CallInst *CI, bool IsEven,
+ IRBuilderBase &B) {
Value *X;
if (match(CI->getArgOperand(0), m_OneUse(m_FNeg(m_Value(X))))) {
IRBuilderBase::FastMathFlagGuard Guard(B);
``````````
</details>
https://github.com/llvm/llvm-project/pull/81324
More information about the llvm-commits
mailing list