https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63644

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
float counter(int maxl) {
   float tenth=0.1f;
   float sum = tenth; 
   int n=0;
   while(n<maxl) {
     sum += tenth;
     ++n;
   }
   return sum;
}
```

As I mentioned this is vectorized starting in GCC 7 which gives a decent speed
up but it could be optimized to just `sum = max1 * tenth + tenth` really.

Reply via email to