Fix PR43209: Do not decrease the cost of an IV candidate when the cost is infinite.
[official-gcc/constexpr.git] / gcc / testsuite / gcc.dg / tree-ssa / ivopts-4.c
blob9080152398683919119022d824fd1ffe6c878d42
1 /* { dg-do compile } */
2 /* { dg-options "-O1" } */
3 void foo(int *p, long i, int j)
5 do {
6 p[i]++;
7 } while (i += j);