2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / predcom-8.c
blobc4562768398b50a3d35e7d1d237e235988d963e8
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-pcom-details" } */
4 int is_sorted(int *a, int n)
6 for (int i = 0; i < n - 1; i++)
7 if (a[i] > a[i + 1])
8 return 0;
9 return 1;
12 /* { dg-final { scan-tree-dump "Executing predictive commoning without unrolling" "pcom" } } */