http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54742



Venkataramanan <venkataramanan.kumar at amd dot com> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

                 CC|                            |venkataramanan.kumar at amd

                   |                            |dot com



--- Comment #5 from Venkataramanan <venkataramanan.kumar at amd dot com> 
2013-03-04 08:27:31 UTC ---

While analyzing cases of threading through backedge.



GCC threads this case.



But does not thread this case.



int first;

void thread_backedge (void)

{

  int i = 0;



  do

    {

      if (first ==1)

      {

          foo ();

          first=0;

      }

       bla ();

      first =0;



    } while (i++ < 100);

}



int first;

void thread_backedge (void)

{

  int i = 0;



  do

    {

      if (first ==1)

      {

          foo ();

          first=0;

      }

     else

     {

       bla ();

      first =0;

     }



    } while (i++ < 100);

}

Reply via email to