public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/98736] New: Wrong partition order generated in loop distribution pass
@ 2021-01-18 19:40 krebbel at gcc dot gnu.org
  2021-01-18 19:41 ` [Bug tree-optimization/98736] " krebbel at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: krebbel at gcc dot gnu.org @ 2021-01-18 19:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98736
           Summary: Wrong partition order generated in loop distribution
                    pass
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: krebbel at gcc dot gnu.org
  Target Milestone: ---

int a[6];
char b, c;
int main() {
  int d[4] = {0, 0, 0, 0};
  for (c = 0; c <= 5; c++) {
    for (b = 2; b != 0; b++)
      a[c] = 8;
    a[c] = d[3];
  }
  if (a[0] != 0)
    __builtin_abort();
}

Aborts when compiled with:
gcc -Os -march=z13 t.c -o t

Succeeds with:
gcc -O3 -march=z13 t.c -o t

The outer loop is recognized as clearmem. Unfortunately it is generated before
the inner loop body.

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

end of thread, other threads:[~2021-04-23 13:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 19:40 [Bug tree-optimization/98736] New: Wrong partition order generated in loop distribution pass krebbel at gcc dot gnu.org
2021-01-18 19:41 ` [Bug tree-optimization/98736] " krebbel at gcc dot gnu.org
2021-01-19  7:52 ` [Bug tree-optimization/98736] [10/11 Regression] " rguenth at gcc dot gnu.org
2021-01-19  9:30 ` [Bug tree-optimization/98736] [10/11 Regression] Wrong partition order generated in loop distribution pass since r10-619-g5879ab5fafedc8f6 marxin at gcc dot gnu.org
2021-02-17 15:07 ` amker at gcc dot gnu.org
2021-03-21  4:41 ` amker at gcc dot gnu.org
2021-04-07  2:29 ` cvs-commit at gcc dot gnu.org
2021-04-07  2:32 ` amker at gcc dot gnu.org
2021-04-07  7:19 ` rguenth at gcc dot gnu.org
2021-04-07  7:21 ` [Bug tree-optimization/98736] [10 " rguenth at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2021-04-23 13:00 ` cvs-commit at gcc dot gnu.org
2021-04-23 13:01 ` 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).