blob: c4562768398b50a3d35e7d1d237e235988d963e8 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-pcom-details" } */
int is_sorted(int *a, int n)
{
for (int i = 0; i < n - 1; i++)
if (a[i] > a[i + 1])
return 0;
return 1;
}
/* { dg-final { scan-tree-dump "Executing predictive commoning without unrolling" "pcom" } } */