[compiler-rt] [compiler-rt] Fix tests after #205331 (PR #210370)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 09:43:33 PDT 2026
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 origin/main HEAD --extensions c -- compiler-rt/test/profile/Linux/counter_promo_for.c compiler-rt/test/profile/Linux/counter_promo_while.c --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/test/profile/Linux/counter_promo_for.c b/compiler-rt/test/profile/Linux/counter_promo_for.c
index c8e717095..fa5fb8e0f 100644
--- a/compiler-rt/test/profile/Linux/counter_promo_for.c
+++ b/compiler-rt/test/profile/Linux/counter_promo_for.c
@@ -38,15 +38,15 @@ __attribute__((noinline)) void foo(int n, int N) {
// NOPROMO: load{{.*}}@__profc_foo{{.*}} 16){{.*}}
// NOPROMO-NEXT: add
// NOPROMO-NEXT: store{{.*}}@__profc_foo{{.*}} 16){{.*}}
- int i;
- for (i = 0; i < N; i++) {
- if (i < n + 1)
- bar(1);
- else if (i == n - 1)
- bar(2);
- else
- bar(3);
- }
+int i;
+for (i = 0; i < N; i++) {
+ if (i < n + 1)
+ bar(1);
+ else if (i == n - 1)
+ bar(2);
+ else
+ bar(3);
+}
}
int main() {
diff --git a/compiler-rt/test/profile/Linux/counter_promo_while.c b/compiler-rt/test/profile/Linux/counter_promo_while.c
index 4383655d9..a3c218436 100644
--- a/compiler-rt/test/profile/Linux/counter_promo_while.c
+++ b/compiler-rt/test/profile/Linux/counter_promo_while.c
@@ -33,16 +33,16 @@ __attribute__((noinline)) void foo(int n, int N) {
// NOPROMO: load{{.*}}@__profc_foo{{.*}} 16){{.*}}
// NOPROMO-NEXT: add
// NOPROMO-NEXT: store{{.*}}@__profc_foo{{.*}} 16){{.*}}
- int i = 0;
- while (i < N) {
- if (i < n + 1)
- bar(1);
- else if (i == n - 1)
- bar(2);
- else
- bar(3);
- i++;
- }
+int i = 0;
+while (i < N) {
+ if (i < n + 1)
+ bar(1);
+ else if (i == n - 1)
+ bar(2);
+ else
+ bar(3);
+ i++;
+}
}
int main() {
``````````
</details>
https://github.com/llvm/llvm-project/pull/210370
More information about the llvm-commits
mailing list