1 /* PR tree-optimization/45241 */ 2 /* { dg-do compile } */ 3 /* { dg-additional-options "--param scev-max-expr-complexity=0" } */ 4 5 int foo(short x)6foo (short x) 7 { 8 short i, y; 9 int sum; 10 11 for (i = 0; i < x; i++) 12 y = x * i; 13 14 for (i = x; i > 0; i--) 15 sum += y; 16 17 return sum; 18 } 19 20