public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111820] New: GCC: 14: hangs with a simple while loop
@ 2023-10-15  2:02 141242068 at smail dot nju.edu.cn
  2023-10-15  2:07 ` [Bug tree-optimization/111820] " pinskia at gcc dot gnu.org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: 141242068 at smail dot nju.edu.cn @ 2023-10-15  2:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111820
           Summary: GCC: 14: hangs with a simple while loop
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 141242068 at smail dot nju.edu.cn
  Target Milestone: ---

Compiler Explorer: https://godbolt.org/z/ezdG5GGd8

When compile below program with option `-O3 -fno-tree-vrp`, GCC consumes upto
46 seconds to finish:
```
int r;
int r_0;

void f (void)
{
  int n = 0;
  while (-- n)
    {
      r_0 += r ;
      r  += r;
      r  += r ;
      r  += r ;
      r  >= r ;
      r  += r ;
    }
}
```

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

end of thread, other threads:[~2023-10-27  3:29 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-15  2:02 [Bug c/111820] New: GCC: 14: hangs with a simple while loop 141242068 at smail dot nju.edu.cn
2023-10-15  2:07 ` [Bug tree-optimization/111820] " pinskia at gcc dot gnu.org
2023-10-15  2:09 ` [Bug tree-optimization/111820] [13/14 Regression] Compiler time hog in the vectorizer with `-O3 -fno-tree-vrp` pinskia at gcc dot gnu.org
2023-10-16  7:14 ` rguenth at gcc dot gnu.org
2023-10-16  7:22 ` crazylht at gmail dot com
2023-10-16  7:43 ` crazylht at gmail dot com
2023-10-16  8:46 ` rguenther at suse dot de
2023-10-17  6:56 ` crazylht at gmail dot com
2023-10-17  7:16 ` rguenther at suse dot de
2023-10-17  9:13 ` crazylht at gmail dot com
2023-10-17  9:47 ` rguenth at gcc dot gnu.org
2023-10-23  1:16 ` cvs-commit at gcc dot gnu.org
2023-10-23  2:39 ` crazylht at gmail dot com
2023-10-23  9:42 ` [Bug tree-optimization/111820] [13 " rguenth at gcc dot gnu.org
2023-10-27  1:06 ` cvs-commit at gcc dot gnu.org
2023-10-27  1:18 ` crazylht at gmail dot com
2023-10-27  1:20 ` pinskia at gcc dot gnu.org
2023-10-27  3:29 ` 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).