blob: 7023818b17a418a4c67cfa212f360a8b5119ff2f [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre1-stats" } */
int
foo (int *array)
{
if (array[1] != 0)
return array[1];
return 0;
}
/* We should eliminate one load. */
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre1"} } */