public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/103361] New: ICE in adjust_unroll_factor, at gimple-loop-jam.c:407
@ 2021-11-22 17:02 vsevolod.livinskij at frtk dot ru
  2021-11-22 17:10 ` [Bug tree-optimization/103361] [12 Regression] ICE in adjust_unroll_factor, at gimple-loop-jam.c:407 since r12-3677-gf92901a508305f29 marxin at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: vsevolod.livinskij at frtk dot ru @ 2021-11-22 17:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103361
           Summary: ICE in adjust_unroll_factor, at gimple-loop-jam.c:407
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vsevolod.livinskij at frtk dot ru
  Target Milestone: ---

Link to the Compiler Explorer: https://godbolt.org/z/jbKEn7Tdq

Reproducer:
char a, b;
extern unsigned short c[];
extern bool d[];
const unsigned short &e(const unsigned short &f, const unsigned short &g) {
  if (g < f)
    return g;
  return f;
}
void k() {
  for (int h = 0; b; h += 3)
    for (unsigned long i = 0; i < 11104842004558084287ULL;
         i += -11104842004558084300ULL)
      for (bool j(e(6, e(6, c[h + i]))); j < (bool)a; j = 7)
        d[7] = 0;
}

Error:
>$ g++ -O3 -c func.cpp
during GIMPLE pass: unrolljam
func.cpp: In function 'void k()':
func.cpp:9:6: internal compiler error: in adjust_unroll_factor, at
gimple-loop-jam.c:407
    9 | void k() {
      |      ^
0x93ebce adjust_unroll_factor
        /testing/gcc/gcc_src_master/gcc/gimple-loop-jam.c:407
0x93ebce tree_loop_unroll_and_jam
        /testing/gcc/gcc_src_master/gcc/gimple-loop-jam.c:551
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

gcc version 12.0.0 20211121 (8fef6f720a5a0a056abfa986ba870bb406ab4716) (GCC)

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

end of thread, other threads:[~2022-05-06 11:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-22 17:02 [Bug tree-optimization/103361] New: ICE in adjust_unroll_factor, at gimple-loop-jam.c:407 vsevolod.livinskij at frtk dot ru
2021-11-22 17:10 ` [Bug tree-optimization/103361] [12 Regression] ICE in adjust_unroll_factor, at gimple-loop-jam.c:407 since r12-3677-gf92901a508305f29 marxin at gcc dot gnu.org
2021-11-23  7:31 ` rguenth at gcc dot gnu.org
2021-11-23  9:11 ` rguenth at gcc dot gnu.org
2021-11-23  9:15 ` [Bug tree-optimization/103361] [9/10/11/12 " rguenth at gcc dot gnu.org
2021-11-23 10:04 ` cvs-commit at gcc dot gnu.org
2021-11-23 10:05 ` [Bug tree-optimization/103361] [9/10/11 " rguenth at gcc dot gnu.org
2022-02-17  9:06 ` cvs-commit at gcc dot gnu.org
2022-04-21 12:52 ` [Bug tree-optimization/103361] [9/10 " cvs-commit at gcc dot gnu.org
2022-05-06 11:09 ` [Bug tree-optimization/103361] [9 " cvs-commit at gcc dot gnu.org
2022-05-06 11:09 ` 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).