111
|
1 /* { dg-options "-O2 -fdump-tree-ivopts -fkeep-gc-roots-live" } */
|
|
2
|
|
3 /* Only integer ivopts here when using -fkeep-gc-roots-live. */
|
|
4
|
|
5 void foo (char *pstart, int n)
|
|
6 {
|
|
7 char *p;
|
|
8 char *pend = pstart + n;
|
|
9
|
|
10 for (p = pstart; p < pend; p++)
|
|
11 *p = 1;
|
|
12 }
|
|
13
|
|
14 void foo1 (char *pstart, int n)
|
|
15 {
|
|
16 char *p;
|
|
17 char *pend = pstart + n;
|
|
18
|
|
19 for (p = pstart; p != pend; p++)
|
|
20 *p = 1;
|
|
21 }
|
|
22
|
|
23 /* { dg-final { scan-tree-dump-times "ivtmp.\[0-9_\]* = PHI <\[^0\]\[^,\]*, \[^0\]" 0 "ivopts"} } */
|