From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 277913857735; Thu, 4 May 2023 03:22:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 277913857735 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683170563; bh=YtlRbGi4DrcF77DqBFOIo4jEJhZGymtvrmWjxbvAiYo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uYSwxga/FuVsVQsXZdU3P52JW3OxX0dn175vHRCrrUwv2pnkdzLd1B/5bL5X5wEBN jXC6cQ5Pbj9ClrWnsXeMdQp/SdhqYb30MwzPyCgLz6B2GL2syoi3NO6XZR4LKVa9tl TZKAb2CI8PuNg2ghVWQperICHlLyrQmNIeguwNUc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109535] [13 regression] internal compiler error: in finalize_new_accesses, at rtl-ssa/changes.cc:471 Date: Thu, 04 May 2023 03:22:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: juzhe.zhong at rivai dot ai X-Bugzilla-Target-Milestone: 13.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109535 --- Comment #15 from CVS Commits --- The releases/gcc-13 branch has been updated by Kito Cheng : https://gcc.gnu.org/g:5821f378b58443e21c77c0f8c673067fc7655fcb commit r13-7285-g5821f378b58443e21c77c0f8c673067fc7655fcb Author: Ju-Zhe Zhong 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 Co-authored-by: kito-cheng (cherry picked from commit a2d12abedc89a9439fd6aadc38730fdadca0684f)=