1 /* { dg-do compile } */ 2 /* { dg-options "-O3 -fdump-tree-ldist" } */ 3 4 int foo(char * p,unsigned n)5foo (char *p, unsigned n) 6 { 7 while(n--) 8 { 9 p[n]='A'; 10 } 11 return 0; 12 } 13 14 /* Loop can be transformed into builtin memset since &p[n] is SCEV. */ 15 /* { dg-final { scan-tree-dump "builtin_memset" "ldist" } } */ 16