Change the size of the static foreach to arbitrarily explode compilation time when compiling with -O:
```
void f()
{
for (int i = 0; i < 1; i++)
{
int j = 0;
static foreach (k; 0 .. 1000)
j++;
}
}
```
The optimizer should stop trying to do quadratic time loop optimizations past a certain threshold.
Comment #1 by robert.schadek — 2024-12-13T19:38:11Z