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

            Bug ID: 111878
           Summary: [14 Regression] ICE: in get_loop_exit_edges, at
                    cfgloop.cc:1204 with -O3 -fgraphite-identity
                    -fsave-optimization-record
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Created attachment 56151
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56151&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O3 -fgraphite-identity -fsave-optimization-record
testcase.c
during GIMPLE pass: graphite
testcase.c: In function 'long_c2i':
testcase.c:5:1: internal compiler error: in get_loop_exit_edges, at
cfgloop.cc:1204
    5 | long_c2i (long utmp, int i)
      | ^~~~~~~~
0x71d5c7 get_loop_exit_edges(loop const*, basic_block_def**)
        /repo/gcc-trunk/gcc/cfgloop.cc:1204
0x177ed5e find_loop_location(loop*)
        /repo/gcc-trunk/gcc/tree-vect-loop-manip.cc:1844
0x25dd9db graphite_transform_loops()
        /repo/gcc-trunk/gcc/graphite.cc:478
0x25ddb70 graphite_transforms
        /repo/gcc-trunk/gcc/graphite.cc:541
0x25ddb70 execute
        /repo/gcc-trunk/gcc/graphite.cc:620
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.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-13-branch/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-13-branch/binary-13-branch-20231014001921-ga9f39860efa-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/13.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-13-branch//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-13-branch//binary-13-branch-20231014001921-ga9f39860efa-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.1 20231014 (GCC)

Reply via email to