public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/112469] New: [14 Regression] ICE: eliminate_stmt, at tree-ssa-sccvn.cc:6944
@ 2023-11-09 22:34 patrick at rivosinc dot com
  2023-11-09 22:35 ` [Bug tree-optimization/112469] " pinskia at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: patrick at rivosinc dot com @ 2023-11-09 22:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112469
           Summary: [14 Regression] ICE: eliminate_stmt, at
                    tree-ssa-sccvn.cc:6944
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: patrick at rivosinc dot com
  Target Milestone: ---

Created attachment 56548
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56548&action=edit
-freport-bug output

> ./bin/riscv64-unknown-linux-gnu-gcc -march=rv64gcv -S -O3 red.c -freport-bug
during GIMPLE pass: fre
red.c: In function 'g':
red.c:4:5: internal compiler error: in eliminate_stmt, at
tree-ssa-sccvn.cc:6944
    4 | int g() {
      |     ^
0xa1cc99 eliminate_dom_walker::eliminate_stmt(basic_block_def*,
gimple_stmt_iterator*)
        ../../../gcc/gcc/tree-ssa-sccvn.cc:6944
0x13efe11 process_bb
        ../../../gcc/gcc/tree-ssa-sccvn.cc:8152
0x13f1712 do_rpo_vn_1
        ../../../gcc/gcc/tree-ssa-sccvn.cc:8602
0x13f3118 execute
        ../../../gcc/gcc/tree-ssa-sccvn.cc:8760
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.

Creduced testcase:
int a, b, c;
static int *d = &a;
int e(int f) { return f == 0 ?: f; }
int g() {
  a = 1;
  for (; a <= 8; a++) {
    b = e(*d);
    c = -b;
  }
}

Bisected to/first bad commit: r14-4221-g8a87ba0b4fe

-freport-bug output attached

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

end of thread, other threads:[~2023-11-11  1:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-09 22:34 [Bug tree-optimization/112469] New: [14 Regression] ICE: eliminate_stmt, at tree-ssa-sccvn.cc:6944 patrick at rivosinc dot com
2023-11-09 22:35 ` [Bug tree-optimization/112469] " pinskia at gcc dot gnu.org
2023-11-09 22:41 ` pinskia at gcc dot gnu.org
2023-11-09 22:45 ` juzhe.zhong at rivai dot ai
2023-11-09 22:50 ` pinskia at gcc dot gnu.org
2023-11-09 22:54 ` juzhe.zhong at rivai dot ai
2023-11-10  8:51 ` rguenth at gcc dot gnu.org
2023-11-10  8:58 ` juzhe.zhong at rivai dot ai
2023-11-10  8:59 ` rguenth at gcc dot gnu.org
2023-11-10 10:59 ` cvs-commit at gcc dot gnu.org
2023-11-10 10:59 ` rguenth at gcc dot gnu.org
2023-11-11  1:05 ` cvs-commit 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).