public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
@ 2023-04-17  8:19 malat at debian dot org
  2023-04-17  8:23 ` [Bug target/109535] " malat at debian dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: malat at debian dot org @ 2023-04-17  8:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109535
           Summary: internal compiler error: in finalize_new_accesses, at
                    rtl-ssa/changes.cc:471
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: malat at debian dot org
  Target Milestone: ---

I cannot compile highway on riscv/rv64gcv1p0 with gcc-13.

Compilation fais with:

% /usr/bin/g++-13 -freport-bug -DHWY_SHARED_DEFINE
-I"/home/malat/highway-1.0.4~git20230317.8681eb8" -g -O2
-ffile-prefix-map=/home/malat/highway-1.0.4~git20230317.8681eb8=.
-fstack-protector-strong -Wformat -Werror=format-security -DHWY_BROKEN_EMU128=0
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIE -fvisibility=hidden
-fvisibility-inlines-hidden -Wno-builtin-macro-redefined
-D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\"
-fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla
-Wnon-virtual-dtor -fmath-errno -fno-exceptions -march=rv64gcv1p0 -Werror
-DHWY_IS_TEST=1 -DGTEST_HAS_PTHREAD=1 -MD -MT
CMakeFiles/transform_test.dir/hwy/contrib/algo/transform_test.cc.o -MF
CMakeFiles/transform_test.dir/hwy/contrib/algo/transform_test.cc.o.d -o
CMakeFiles/transform_test.dir/hwy/contrib/algo/transform_test.cc.o -c
'/home/malat/highway-1.0.4~git20230317.8681eb8/hwy/contrib/algo/transform_test.cc'
during RTL pass: vsetvl
/home/malat/highway-1.0.4~git20230317.8681eb8/hwy/contrib/algo/transform_test.cc:
In function 'void hwy::N_RVV::ForeachCountAndMisalign<Test>::operator()(T, D)
const [with T = unsigned char; D = hwy::N_RVV::Simd<unsigned char, 8192, 2>;
Test = hwy::N_RVV::TestGenerate]':
/home/malat/highway-1.0.4~git20230317.8681eb8/hwy/contrib/algo/transform_test.cc:133:3:
internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  133 |   }
      |   ^
0xf4b18d rtl_ssa::function_info::finalize_new_accesses(rtl_ssa::insn_change&)
        ../../src/gcc/rtl-ssa/changes.cc:471
0xf4c0a7
rtl_ssa::function_info::change_insns(array_slice<rtl_ssa::insn_change*>)
        ../../src/gcc/rtl-ssa/changes.cc:659
0xb4f1e7 rtl_ssa::function_info::change_insn(rtl_ssa::insn_change&)
        ../../src/gcc/rtl-ssa/changes.cc:717
0xb4f1e7 change_insn
        ../../src/gcc/config/riscv/riscv-vsetvl.cc:1028
0xb4f1e7 pass_vsetvl::cleanup_insns() const
        ../../src/gcc/config/riscv/riscv-vsetvl.cc:3951
0xb59891 pass_vsetvl::lazy_vsetvl()
        ../../src/gcc/config/riscv/riscv-vsetvl.cc:4211
0xb59a7d pass_vsetvl::execute(function*)
        ../../src/gcc/config/riscv/riscv-vsetvl.cc:4241
0xb59a7d pass_vsetvl::execute(function*)
        ../../src/gcc/config/riscv/riscv-vsetvl.cc:4222
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions.

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

* [Bug target/109535] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
@ 2023-04-17  8:23 ` malat at debian dot org
  2023-04-17  8:49 ` rsandifo at gcc dot gnu.org
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: malat at debian dot org @ 2023-04-17  8:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Mathieu Malaterre <malat at debian dot org> ---
Created attachment 54874
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54874&action=edit
preprocessed source

% gcc-13 --version
gcc-13 (Debian 13-20230411-1) 13.0.1 20230411 (experimental) [master
r13-7137-gb8e32978e3d]

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

* [Bug target/109535] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
  2023-04-17  8:23 ` [Bug target/109535] " malat at debian dot org
@ 2023-04-17  8:49 ` rsandifo at gcc dot gnu.org
  2023-04-17  9:19 ` juzhe.zhong at rivai dot ai
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2023-04-17  8:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
The assert in question fires if the pass creates an instruction
whose pattern uses a register or memory and if the pass doesn't
provide associated use information.  Let me know if it looks like
a bug in rtl-ssa rather than a bug in the vsetvl pass.

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

* [Bug target/109535] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
  2023-04-17  8:23 ` [Bug target/109535] " malat at debian dot org
  2023-04-17  8:49 ` rsandifo at gcc dot gnu.org
@ 2023-04-17  9:19 ` juzhe.zhong at rivai dot ai
  2023-04-17  9:26 ` juzhe.zhong at rivai dot ai
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-04-17  9:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
Thanks for reporting it. We will take a look at it.

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

* [Bug target/109535] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (2 preceding siblings ...)
  2023-04-17  9:19 ` juzhe.zhong at rivai dot ai
@ 2023-04-17  9:26 ` juzhe.zhong at rivai dot ai
  2023-04-17 10:00 ` kito at gcc dot gnu.org
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-04-17  9:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
(In reply to Mathieu Malaterre from comment #1)
> Created attachment 54874 [details]
> preprocessed source
> 
> % gcc-13 --version
> gcc-13 (Debian 13-20230411-1) 13.0.1 20230411 (experimental) [master
> r13-7137-gb8e32978e3d]

Hi, it seems that your attatchment is an excution file instead of 
a source code. It may not be easy for us to debug it.

Can you give me the source code? Thanks.

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

* [Bug target/109535] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (3 preceding siblings ...)
  2023-04-17  9:26 ` juzhe.zhong at rivai dot ai
@ 2023-04-17 10:00 ` kito at gcc dot gnu.org
  2023-04-17 14:04 ` pan2.li at intel dot com
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: kito at gcc dot gnu.org @ 2023-04-17 10:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Kito Cheng <kito at gcc dot gnu.org> ---
Confirmed the the output is text file, it's just suffixed with .out

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

* [Bug target/109535] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (4 preceding siblings ...)
  2023-04-17 10:00 ` kito at gcc dot gnu.org
@ 2023-04-17 14:04 ` pan2.li at intel dot com
  2023-04-17 14:54 ` kito at gcc dot gnu.org
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pan2.li at intel dot com @ 2023-04-17 14:04 UTC (permalink / raw)
  To: gcc-bugs

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

Li Pan <pan2.li at intel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pan2.li at intel dot com

--- Comment #6 from Li Pan <pan2.li at intel dot com> ---
(In reply to rsandifo@gcc.gnu.org from comment #2)
> The assert in question fires if the pass creates an instruction
> whose pattern uses a register or memory and if the pass doesn't
> provide associated use information.  Let me know if it looks like
> a bug in rtl-ssa rather than a bug in the vsetvl pass.

Just sync with juzhe for the assertion failure. It tries to find the regno=8 in
the shared_uses=[0, 66, 67] in function_info::finalize_new_accesses. And then
it will hit the NOT_NULL assert.

While in the pass_vsetvl::cleanup_insns, it will clean up the AVL use similar
as below.

AVL regno 8
Before Uses Reg Nums => [0,8,66,67,]
After  Uses Reg Nums => [0,66,67,]

After vsetvl, the avl-related use, aka use Regno=8 will be removed, because the
instruction pattern in RVV will eliminate the dependencies of the operand.

Juzhe can help to correct me if any misleading or misunderstanding.

Thanks.

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

* [Bug target/109535] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (5 preceding siblings ...)
  2023-04-17 14:04 ` pan2.li at intel dot com
@ 2023-04-17 14:54 ` kito at gcc dot gnu.org
  2023-04-17 15:05 ` juzhe.zhong at rivai dot ai
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: kito at gcc dot gnu.org @ 2023-04-17 14:54 UTC (permalink / raw)
  To: gcc-bugs

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

Kito Cheng <kito at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-04-17
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1
           Assignee|unassigned at gcc dot gnu.org      |juzhe.zhong at rivai dot ai

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

* [Bug target/109535] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (6 preceding siblings ...)
  2023-04-17 14:54 ` kito at gcc dot gnu.org
@ 2023-04-17 15:05 ` juzhe.zhong at rivai dot ai
  2023-04-17 15:13 ` rsandifo at gcc dot gnu.org
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-04-17 15:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
(In reply to rsandifo@gcc.gnu.org from comment #2)
> The assert in question fires if the pass creates an instruction
> whose pattern uses a register or memory and if the pass doesn't
> provide associated use information.  Let me know if it looks like
> a bug in rtl-ssa rather than a bug in the vsetvl pass.

Hi, Richard.

As Li Pan said, the vsetvl pass is trying to remove regno = 8 in
old uses = [0,8,66,67,]

Here is the code:

access_array_builder uses_builder (attempt);
uses_builder.reserve (insn->num_uses () - 1);
for (use_info *use : insn->uses ())
if (use != find_access (insn->uses (), REGNO (avl)))
  uses_builder.quick_push (use);
use_array new_uses = use_array (uses_builder.finish ());
change.new_uses = new_uses;

You can see here, I add all uses except the use which has the same regno with
"avl". 

Am I using RTL_SSA in a wrong way ? Or I should remove RTL_SSA updating when
removing operands of uses ?

Looking forward your suggestions.
Thanks.

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

* [Bug target/109535] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (7 preceding siblings ...)
  2023-04-17 15:05 ` juzhe.zhong at rivai dot ai
@ 2023-04-17 15:13 ` rsandifo at gcc dot gnu.org
  2023-04-18  2:05 ` juzhe.zhong at rivai dot ai
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2023-04-17 15:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Can you quote a dump of the new insn pattern?  Or just:

  dump(change);

in function_info::finalize_new_accesses should do.

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

* [Bug target/109535] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (8 preceding siblings ...)
  2023-04-17 15:13 ` rsandifo at gcc dot gnu.org
@ 2023-04-18  2:05 ` juzhe.zhong at rivai dot ai
  2023-04-20 12:30 ` [Bug target/109535] [13/14] " kito at gcc dot gnu.org
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-04-18  2:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
Confirm it is VSETVL pass bug in RISC-V port backend.
Fix patch here:
https://gcc.gnu.org/pipermail/gcc-patches/2023-April/615882.html
Hopefully, it will be merged soon.

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

* [Bug target/109535] [13/14] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (9 preceding siblings ...)
  2023-04-18  2:05 ` juzhe.zhong at rivai dot ai
@ 2023-04-20 12:30 ` kito at gcc dot gnu.org
  2023-04-20 13:21 ` cvs-commit at gcc dot gnu.org
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: kito at gcc dot gnu.org @ 2023-04-20 12:30 UTC (permalink / raw)
  To: gcc-bugs

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

Kito Cheng <kito at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.2
            Summary|internal compiler error: in |[13/14] internal compiler
                   |finalize_new_accesses, at   |error: in
                   |rtl-ssa/changes.cc:471      |finalize_new_accesses, at
                   |                            |rtl-ssa/changes.cc:471

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

* [Bug target/109535] [13/14] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (10 preceding siblings ...)
  2023-04-20 12:30 ` [Bug target/109535] [13/14] " kito at gcc dot gnu.org
@ 2023-04-20 13:21 ` cvs-commit at gcc dot gnu.org
  2023-04-20 14:30 ` juzhe.zhong at rivai dot ai
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-04-20 13:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kito Cheng <kito@gcc.gnu.org>:

https://gcc.gnu.org/g:a2d12abedc89a9439fd6aadc38730fdadca0684f

commit r14-113-ga2d12abedc89a9439fd6aadc38730fdadca0684f
Author: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
Date:   Wed Apr 19 18:41:51 2023 +0800

    RISC-V: Fix wrong check of register occurrences [PR109535]

    count_occurrences will conly count same RTX (same code and same mode),
    but what we want to track is the occurrence of a register, a register
    might appeared in the insn with different mode or contain in SUBREG.

    Testcase coming from Kito.

    gcc/ChangeLog:

            PR target/109535
            * config/riscv/riscv-vsetvl.cc (count_regno_occurrences): New
function.
            (pass_vsetvl::cleanup_insns): Fix bug.

    gcc/testsuite/ChangeLog:

            PR target/109535
            * g++.target/riscv/rvv/base/pr109535.C: New test.
            * gcc.target/riscv/rvv/base/pr109535.c: New test.

    Signed-off-by: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
    Co-authored-by: kito-cheng <kito.cheng@sifive.com>

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

* [Bug target/109535] [13/14] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (11 preceding siblings ...)
  2023-04-20 13:21 ` cvs-commit at gcc dot gnu.org
@ 2023-04-20 14:30 ` juzhe.zhong at rivai dot ai
  2023-04-20 15:02 ` malat at debian dot org
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-04-20 14:30 UTC (permalink / raw)
  To: gcc-bugs

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

JuzheZhong <juzhe.zhong at rivai dot ai> changed:

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

--- Comment #11 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
fixed

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

* [Bug target/109535] [13/14] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (12 preceding siblings ...)
  2023-04-20 14:30 ` juzhe.zhong at rivai dot ai
@ 2023-04-20 15:02 ` malat at debian dot org
  2023-04-20 22:44 ` juzhe.zhong at rivai dot ai
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: malat at debian dot org @ 2023-04-20 15:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Mathieu Malaterre <malat at debian dot org> ---
@JuzheZhong 

Technically you are supposed to simply remove the keyword '14' from the title
and close when backported on 13...

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

* [Bug target/109535] [13/14] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (13 preceding siblings ...)
  2023-04-20 15:02 ` malat at debian dot org
@ 2023-04-20 22:44 ` juzhe.zhong at rivai dot ai
  2023-04-21  1:46 ` juzhe.zhong at rivai dot ai
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-04-20 22:44 UTC (permalink / raw)
  To: gcc-bugs

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

JuzheZhong <juzhe.zhong at rivai dot ai> changed:

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

--- Comment #13 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
reopen

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

* [Bug target/109535] [13/14] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (14 preceding siblings ...)
  2023-04-20 22:44 ` juzhe.zhong at rivai dot ai
@ 2023-04-21  1:46 ` juzhe.zhong at rivai dot ai
  2023-05-04  3:22 ` [Bug target/109535] [13 regression] " cvs-commit at gcc dot gnu.org
  2023-05-04  3:23 ` kito at gcc dot gnu.org
  17 siblings, 0 replies; 19+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-04-21  1:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
(In reply to Mathieu Malaterre from comment #12)
> @JuzheZhong 
> 
> Technically you are supposed to simply remove the keyword '14' from the
> title and close when backported on 13...

Thank you for correcting me. I reopen this bug and let wait for kito backport
to
GCC 13 to close this bug.

Thanks.

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

* [Bug target/109535] [13 regression] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (15 preceding siblings ...)
  2023-04-21  1:46 ` juzhe.zhong at rivai dot ai
@ 2023-05-04  3:22 ` cvs-commit at gcc dot gnu.org
  2023-05-04  3:23 ` kito at gcc dot gnu.org
  17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-05-04  3:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Kito Cheng <kito@gcc.gnu.org>:

https://gcc.gnu.org/g:5821f378b58443e21c77c0f8c673067fc7655fcb

commit r13-7285-g5821f378b58443e21c77c0f8c673067fc7655fcb
Author: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
Date:   Wed Apr 19 18:41:51 2023 +0800

    RISC-V: Fix wrong check of register occurrences [PR109535]

    count_occurrences will conly count same RTX (same code and same mode),
    but what we want to track is the occurrence of a register, a register
    might appeared in the insn with different mode or contain in SUBREG.

    Testcase coming from Kito.

    gcc/ChangeLog:

            PR target/109535
            * config/riscv/riscv-vsetvl.cc (count_regno_occurrences): New
function.
            (pass_vsetvl::cleanup_insns): Fix bug.

    gcc/testsuite/ChangeLog:

            PR target/109535
            * g++.target/riscv/rvv/base/pr109535.C: New test.
            * gcc.target/riscv/rvv/base/pr109535.c: New test.

    Signed-off-by: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
    Co-authored-by: kito-cheng <kito.cheng@sifive.com>
    (cherry picked from commit a2d12abedc89a9439fd6aadc38730fdadca0684f)

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

* [Bug target/109535] [13 regression] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471
  2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
                   ` (16 preceding siblings ...)
  2023-05-04  3:22 ` [Bug target/109535] [13 regression] " cvs-commit at gcc dot gnu.org
@ 2023-05-04  3:23 ` kito at gcc dot gnu.org
  17 siblings, 0 replies; 19+ messages in thread
From: kito at gcc dot gnu.org @ 2023-05-04  3:23 UTC (permalink / raw)
  To: gcc-bugs

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

Kito Cheng <kito at gcc dot gnu.org> changed:

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

--- Comment #16 from Kito Cheng <kito at gcc dot gnu.org> ---
Fixed both on trunk and GCC 13 branch :)

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

end of thread, other threads:[~2023-05-04  3:23 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-17  8:19 [Bug tree-optimization/109535] New: internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 malat at debian dot org
2023-04-17  8:23 ` [Bug target/109535] " malat at debian dot org
2023-04-17  8:49 ` rsandifo at gcc dot gnu.org
2023-04-17  9:19 ` juzhe.zhong at rivai dot ai
2023-04-17  9:26 ` juzhe.zhong at rivai dot ai
2023-04-17 10:00 ` kito at gcc dot gnu.org
2023-04-17 14:04 ` pan2.li at intel dot com
2023-04-17 14:54 ` kito at gcc dot gnu.org
2023-04-17 15:05 ` juzhe.zhong at rivai dot ai
2023-04-17 15:13 ` rsandifo at gcc dot gnu.org
2023-04-18  2:05 ` juzhe.zhong at rivai dot ai
2023-04-20 12:30 ` [Bug target/109535] [13/14] " kito at gcc dot gnu.org
2023-04-20 13:21 ` cvs-commit at gcc dot gnu.org
2023-04-20 14:30 ` juzhe.zhong at rivai dot ai
2023-04-20 15:02 ` malat at debian dot org
2023-04-20 22:44 ` juzhe.zhong at rivai dot ai
2023-04-21  1:46 ` juzhe.zhong at rivai dot ai
2023-05-04  3:22 ` [Bug target/109535] [13 regression] " cvs-commit at gcc dot gnu.org
2023-05-04  3:23 ` kito 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).