public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zhendong.su at inf dot ethz.ch" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/109689] New: ICE at -O1 with "-ftree-vectorize": in check_loop_closed_ssa_def, at tree-ssa-loop-manip.cc:645
Date: Mon, 01 May 2023 20:54:49 +0000	[thread overview]
Message-ID: <bug-109689-4@http.gcc.gnu.org/bugzilla/> (raw)

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;
}

             reply	other threads:[~2023-05-01 20:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-01 20:54 zhendong.su at inf dot ethz.ch [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-109689-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).