[llvm] [AggressiveInstCombine] Inline strcmp/strncmp (PR #89371)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 30 21:17:04 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 2a4e61b342e7a19bcb229ef16dee083c58224a3f 436675a533a20fb2c89965c07b8f4b18c7ac35f2 -- llvm/include/llvm/Analysis/ValueTracking.h llvm/include/llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h llvm/lib/Analysis/ValueTracking.cpp llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp b/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
index 867e5cf8df..3349607a29 100644
--- a/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
+++ b/llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
@@ -401,9 +401,9 @@ static bool tryToFPToSat(Instruction &I, TargetTransformInfo &TTI) {
/// Try to replace a mathlib call to sqrt with the LLVM intrinsic. This avoids
/// pessimistic codegen that has to account for setting errno and can enable
/// vectorization.
-static bool foldSqrt(CallInst *Call, LibFunc Func,
- TargetTransformInfo &TTI, TargetLibraryInfo &TLI,
- AssumptionCache &AC, DominatorTree &DT) {
+static bool foldSqrt(CallInst *Call, LibFunc Func, TargetTransformInfo &TTI,
+ TargetLibraryInfo &TLI, AssumptionCache &AC,
+ DominatorTree &DT) {
Module *M = Call->getModule();
``````````
</details>
https://github.com/llvm/llvm-project/pull/89371
More information about the llvm-commits
mailing list