public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/109689] New: ICE at -O1 with "-ftree-vectorize": in check_loop_closed_ssa_def, at tree-ssa-loop-manip.cc:645
@ 2023-05-01 20:54 zhendong.su at inf dot ethz.ch
  2023-05-01 21:14 ` [Bug tree-optimization/109689] [14 Regression] " pinskia at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: zhendong.su at inf dot ethz.ch @ 2023-05-01 20:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109689
           Summary: ICE at -O1 with "-ftree-vectorize": in
                    check_loop_closed_ssa_def, at
                    tree-ssa-loop-manip.cc:645
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhendong.su at inf dot ethz.ch
  Target Milestone: ---

This appears to be a very recent regression.

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

[629] % gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --disable-bootstrap
--prefix=/local/suz-local/software/local/gcc-trunk --enable-languages=c,c++
--disable-werror --disable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.0 20230501 (experimental) (GCC)
[630] %
[630] % gcctk -O1 -ftree-vectorize small.c
during GIMPLE pass: ch_vect
small.c: In function ‘main’:
small.c:2:5: internal compiler error: in check_loop_closed_ssa_def, at
tree-ssa-loop-manip.cc:645
    2 | int main() {
      |     ^~~~
0x822c59 check_loop_closed_ssa_def
        ../../gcc-trunk/gcc/tree-ssa-loop-manip.cc:645
0x11cfc34 check_loop_closed_ssa_bb
        ../../gcc-trunk/gcc/tree-ssa-loop-manip.cc:659
0x11d18be verify_loop_closed_ssa(bool, loop*)
        ../../gcc-trunk/gcc/tree-ssa-loop-manip.cc:695
0x11d18be verify_loop_closed_ssa(bool, loop*)
        ../../gcc-trunk/gcc/tree-ssa-loop-manip.cc:679
0xf243f9 execute_function_todo
        ../../gcc-trunk/gcc/passes.cc:2116
0xf24bfe execute_todo
        ../../gcc-trunk/gcc/passes.cc:2152
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
[631] %
[631] % cat small.c
int a, b, c, d, e;
int main() {
  char f;
  while (a) {
    int g, h = 3;
    if (b)
    i:
      if (d)
        goto j;
  k:
    if (a) {
    j:
      if (!g)
        goto k;
      if (e) {
        while (e)
          e = f;
        h = 0;
        goto i;
      }
      if (!h)
        for (; g < 1; g++)
          ;
      g = ~((~c & h & c) ^ ~g);
      if (!g)
        for (; a < 1; a++)
          f++;
    }
  }
  return 0;
}

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

end of thread, other threads:[~2023-12-05 13:16 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-01 20:54 [Bug tree-optimization/109689] New: ICE at -O1 with "-ftree-vectorize": in check_loop_closed_ssa_def, at tree-ssa-loop-manip.cc:645 zhendong.su at inf dot ethz.ch
2023-05-01 21:14 ` [Bug tree-optimization/109689] [14 Regression] " pinskia at gcc dot gnu.org
2023-05-01 22:31 ` pinskia at gcc dot gnu.org
2023-05-02  6:30 ` rguenth at gcc dot gnu.org
2023-05-02  8:05 ` rguenth at gcc dot gnu.org
2023-05-02 14:24 ` [Bug tree-optimization/109689] [14 Regression] ICE at -O1 with "-ftree-vectorize": in check_loop_closed_ssa_def, at tree-ssa-loop-manip.cc:645 since r14-301-gf2d6beb7a4ddf1 marxin at gcc dot gnu.org
2023-06-06  5:11 ` pinskia at gcc dot gnu.org
2023-06-06  5:11 ` pinskia at gcc dot gnu.org
2023-06-20  6:34 ` zhendong.su at inf dot ethz.ch
2023-06-23 15:15 ` hubicka at gcc dot gnu.org
2023-06-28 10:23 ` rguenth at gcc dot gnu.org
2023-06-28 10:41 ` hubicka at ucw dot cz
2023-11-05 21:55 ` pinskia at gcc dot gnu.org
2023-11-12 19:13 ` pinskia at gcc dot gnu.org
2023-12-05  7:03 ` sjames at gcc dot gnu.org
2023-12-05 13:16 ` cvs-commit at gcc dot gnu.org
2023-12-05 13:16 ` 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).