public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/56003] New: SCEV should thread flags ^= 0x80000000 as an addition to discover an IV var.
@ 2013-01-16 13:33 hubicka at gcc dot gnu.org
  2023-09-04  0:41 ` [Bug tree-optimization/56003] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: hubicka at gcc dot gnu.org @ 2013-01-16 13:33 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56003
           Summary: SCEV should thread flags ^= 0x80000000 as an addition
                    to discover an IV var.
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hubicka@gcc.gnu.org


In the following testcase we fail to work out that the loop is not really
iterating after unswitching otherwise.
void my_waitpid (int flags, int wnohang)
{
  while (1)
    {
      if (flags & 0x80000000)
        {
          if (wnohang)
            break;
          if (debug_threads)
            __builtin_puts ("blocking\n");
          sigsuspend ();
        }
      flags ^= 0x80000000;
    }
}


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug tree-optimization/56003] SCEV should thread flags ^= 0x80000000 as an addition to discover an IV var.
  2013-01-16 13:33 [Bug tree-optimization/56003] New: SCEV should thread flags ^= 0x80000000 as an addition to discover an IV var hubicka at gcc dot gnu.org
@ 2023-09-04  0:41 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-04  0:41 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=45178

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Maybe the patch which fixed PR 45178 fixes this one too ...

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-04  0:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-16 13:33 [Bug tree-optimization/56003] New: SCEV should thread flags ^= 0x80000000 as an addition to discover an IV var hubicka at gcc dot gnu.org
2023-09-04  0:41 ` [Bug tree-optimization/56003] " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).