Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/predcom-8.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-pcom-details-blocks" } */
3
4 int is_sorted(int *a, int n)
5 {
6 for (int i = 0; i < n - 1; i++)
7 if (a[i] > a[i + 1])
8 return 0;
9 return 1;
10 }
11
12 /* { dg-final { scan-tree-dump "Executing predictive commoning without unrolling" "pcom" } } */
13 /* { dg-final { scan-tree-dump-not "Invalid sum" "pcom" { xfail aarch64*-*-* } } } */