1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fdump-tree-pre" } */ 3 foo(int * p,double * x,int n)4void foo(int *p, double *x, int n) 5 { 6 int i; 7 for (i = 0; i < n; ++i) 8 *(x + *p * i) = 0.0; 9 } 10 11 /* We should remove the unnecessary insertion of a phi-node and 12 _not_ end up using the phi result for replacement *p. */ 13 14 /* { dg-final { scan-tree-dump-not "= prephitmp" "pre" } } */ 15