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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |8.4

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r255267.
Cleaned up testcase:
/* PR tree-optimization/90211 */
/* { dg-do compile } */
/* { dg-require-effective-target pthread } */
/* { dg-options "-O3 -fassociative-math -ftree-parallelize-loops=2
-fno-signed-zeros -fno-trapping-math -fno-tree-copy-prop" } */

double
foo (int x)
{
  double a, b = 0.0;
  while (x < 3)
    {
      int c;
      a = 0.0;
      c = 0;
      while (c < x)
        {
          a += 1.0;
          ++c;
        }
      b += 1.0;
      ++x;
    }
  return a + b;
}

Reply via email to