public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/107449] New: CD-DCE fails to eliminate abnormal incoming edges
@ 2022-10-28 13:09 rguenth at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: rguenth at gcc dot gnu.org @ 2022-10-28 13:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107449
           Summary: CD-DCE fails to eliminate abnormal incoming edges
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-checking, ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
                CC: asolokha at gmx dot com
        Depends on: 107447
  Target Milestone: ---

+++ This bug was initially created as a clone of Bug #107447 +++

int n;

void
bar (int, int);

__attribute__ ((noinline, returns_twice)) int
zero (void)
{
  return 0;
}

void
foo (void)
{
  (void) zero ();

  n = 0;

  for (;;)
    bar (zero (), n);
}

With this testcase GCC fails to eliminate the abnormal edges into the
first zero () call which is elided by CD-DCE.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107447
[Bug 107447] [13 Regression] ICE: verify_flow_info failed (error: returns_twice
call is not first in basic block 2)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-28 13:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28 13:09 [Bug tree-optimization/107449] New: CD-DCE fails to eliminate abnormal incoming edges rguenth 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).