]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-16.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-lim2-details" } */
4 volatile int flag
, bar
;
5 double foo (double *valp
)
8 for (int i
= 0; i
< 256; ++i
)
10 for (int j
= 0; j
< 256; ++j
)
14 sum
+= *valp
; // we should move the load of *valp out of the loop
19 /* { dg-final { scan-tree-dump-times "Moving statement" 1 "lim2" } } */