public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112888] New: [14 Regression] RISCV ICE: in compute_lcm_local_properties, at config/riscv/riscv-vsetvl.cc:2695
@ 2023-12-06 20:04 patrick at rivosinc dot com
  2023-12-06 22:36 ` [Bug target/112888] " juzhe.zhong at rivai dot ai
  2023-12-06 23:35 ` patrick at rivosinc dot com
  0 siblings, 2 replies; 3+ messages in thread
From: patrick at rivosinc dot com @ 2023-12-06 20:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112888
           Summary: [14 Regression] RISCV ICE: in
                    compute_lcm_local_properties, at
                    config/riscv/riscv-vsetvl.cc:2695
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: patrick at rivosinc dot com
  Target Milestone: ---

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

Testcase:
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/testsuite/c-c%2B%2B-common/goacc/kernels-double-reduction-n.c;h=8f7f415b58d848cf51427c102972e248c1bcb191;hb=c9d5b46a25547035e381b0246de5cb553ca8b02d

Command:
> ./bin/riscv64-unknown-linux-gnu-gcc -march=rv64gcv kernels-double-reduction-n.c -fopenacc -O2

during RTL pass: vsetvl
kernels-double-reduction-n.c: In function 'foo._omp_fn.0':
kernels-double-reduction-n.c:18:9: internal compiler error: in
compute_lcm_local_properties, at config/riscv/riscv-vsetvl.cc:2695
   18 | #pragma acc kernels copyin (a[0:n]) copy (sum) /* { dg-message
"optimized: assigned OpenACC gang loop parallelism" } */
      |         ^~~
0xac6f4b pre_vsetvl::compute_lcm_local_properties()
        ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:2695
0x173b419 pre_vsetvl::earliest_fuse_vsetvl_info()
        ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:2884
0x173d5d9 pass_vsetvl::lazy_vsetvl()
        ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:3531
0x173d93f pass_vsetvl::execute(function*)
        ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:3578
0x173d93f pass_vsetvl::execute(function*)
        ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:3561
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.

Looks like the newly added assert is firing:
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/riscv/riscv-vsetvl.cc;h=68f0be7e81d124dde4537761719c93902992af2f;hb=c9d5b46a25547035e381b0246de5cb553ca8b02d#l2695

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

* [Bug target/112888] [14 Regression] RISCV ICE: in compute_lcm_local_properties, at config/riscv/riscv-vsetvl.cc:2695
  2023-12-06 20:04 [Bug target/112888] New: [14 Regression] RISCV ICE: in compute_lcm_local_properties, at config/riscv/riscv-vsetvl.cc:2695 patrick at rivosinc dot com
@ 2023-12-06 22:36 ` juzhe.zhong at rivai dot ai
  2023-12-06 23:35 ` patrick at rivosinc dot com
  1 sibling, 0 replies; 3+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-12-06 22:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
Could you commit this patch for me ?:

https://gcc.gnu.org/pipermail/gcc-patches/2023-December/639642.html

This patch fixes this ICE.

My internet can not access the gcc.git.

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

* [Bug target/112888] [14 Regression] RISCV ICE: in compute_lcm_local_properties, at config/riscv/riscv-vsetvl.cc:2695
  2023-12-06 20:04 [Bug target/112888] New: [14 Regression] RISCV ICE: in compute_lcm_local_properties, at config/riscv/riscv-vsetvl.cc:2695 patrick at rivosinc dot com
  2023-12-06 22:36 ` [Bug target/112888] " juzhe.zhong at rivai dot ai
@ 2023-12-06 23:35 ` patrick at rivosinc dot com
  1 sibling, 0 replies; 3+ messages in thread
From: patrick at rivosinc dot com @ 2023-12-06 23:35 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick O'Neill <patrick at rivosinc dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Patrick O'Neill <patrick at rivosinc dot com> ---
Tested locally - confirmed to resolve the failure & committed.
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=db642d60ee81cd99d55f4e228d01de704b5b7cfa

Thanks for the quick fix!

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

end of thread, other threads:[~2023-12-06 23:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-06 20:04 [Bug target/112888] New: [14 Regression] RISCV ICE: in compute_lcm_local_properties, at config/riscv/riscv-vsetvl.cc:2695 patrick at rivosinc dot com
2023-12-06 22:36 ` [Bug target/112888] " juzhe.zhong at rivai dot ai
2023-12-06 23:35 ` patrick at rivosinc dot com

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).