[llvm-branch-commits] [BOLT][test] Add pseudo-probe-split-func.test (PR #139171)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu May 8 16:12:52 PDT 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 HEAD~1 HEAD --extensions c -- bolt/test/X86/Inputs/pseudo-probe-split-func.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/test/X86/Inputs/pseudo-probe-split-func.c b/bolt/test/X86/Inputs/pseudo-probe-split-func.c
index 3f0edb334..8adf3bfc3 100644
--- a/bolt/test/X86/Inputs/pseudo-probe-split-func.c
+++ b/bolt/test/X86/Inputs/pseudo-probe-split-func.c
@@ -10,7 +10,10 @@ int bar(int x, int y) {
void foo() {
int s, i = 0;
while (i++ < 4000 * 4000)
- if (i % 91) s = bar(i, s); else s += 30;
+ if (i % 91)
+ s = bar(i, s);
+ else
+ s += 30;
printf("sum is %d\n", s);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/139171
More information about the llvm-branch-commits
mailing list