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

Arseny Solokha <asolokha at gmx dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asolokha at gmx dot com

--- Comment #1 from Arseny Solokha <asolokha at gmx dot com> ---
int gi, dg;

void
fe (void)
{
  int ka = gi;

  for (;;)
    {
      if (ka != 0)
        {
          if (dg != 0)
            gi = 0;
          ++ka;
        }
      ++dg;
    }
}

-O2 -ftree-loop-if-convert-stores is enough for both cases.

Reply via email to