annotate gcc/testsuite/gcc.dg/tree-ssa/ssa-hoist-4.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 /* From PR21485. */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 long
kono
parents:
diff changeset
7 NumSift (long *array, int b, unsigned long k)
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 if (b)
kono
parents:
diff changeset
10 if (array[k] < array[k + 1L])
kono
parents:
diff changeset
11 ++k;
kono
parents:
diff changeset
12 return array[k];
kono
parents:
diff changeset
13 }
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 /* There should be only two loads left. And the final value in the
kono
parents:
diff changeset
16 if (b) arm should be if-converted:
kono
parents:
diff changeset
17 tem1 = array[k];
kono
parents:
diff changeset
18 if (b)
kono
parents:
diff changeset
19 tem1 = MAX (array[k+1], tem1)
kono
parents:
diff changeset
20 return tem1; */
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 /* { dg-final { scan-tree-dump-times "= \\*" 2 "optimized" } } */
kono
parents:
diff changeset
23 /* { dg-final { scan-tree-dump-times "MAX_EXPR" 1 "optimized" } } */
kono
parents:
diff changeset
24 /* { dg-final { scan-tree-dump-times "= PHI" 1 "optimized" } } */