From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 63FBE3854168; Tue, 18 Apr 2023 07:16:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63FBE3854168 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681802185; bh=v4pbXcJSu6GQdmgcIvIhV3ja2wiA8KIyu2JTaNiBPLk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tsF9QF7CD/Q6d7ZjNCgCylOAt+1RAf+53Ys6Gxu1CznfzS0B9BE37ot/EeVJ1O3Zv 4EX1X9wjpcKOG2lPRVkbc8dBUKONDVjHlRwET1GGWigJ3EOHmsl/MIb4gWntHnP/O2 j6UOPzUM0RNtW6ynT8ozRK0o1ebKY7/Kc+z/QwOs= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109410] [13 Regression] ICE: verify_flow_info failed Date: Tue, 18 Apr 2023 07:16:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-checking, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D109410 --- Comment #8 from CVS Commits --- The releases/gcc-12 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:0e55b8e091a7263364cb08fd2c9172babb554ab1 commit r12-9428-g0e55b8e091a7263364cb08fd2c9172babb554ab1 Author: Jakub Jelinek Date: Wed Apr 12 16:55:15 2023 +0200 reassoc: Fix up another ICE with returns_twice call [PR109410] The following testcase ICEs in reassoc, unlike the last case I've fixed there here SSA_NAME_USED_IN_ABNORMAL_PHI is not the case anywhere. build_and_add_sum places new statements after the later appearing definition of an operand but if both operands are default defs or constants, we pl= ace statement at the start of the function. If the very first statement of a function is a call to returns_twice function, this doesn't work though, because that call has to be the fir= st thing in its basic block, so the following patch splits the entry succe= ssor edge such that the new statements are added into a different block from= the returns_twice call. I think we should in stage1 reconsider such placements, I think it unnecessarily enlarges the lifetime of the new lhs if its operand(s) are used more than once in the function. Unless something sinks those again. Would be nice to place it closer to the actual uses (or where they will be placed). 2023-04-12 Jakub Jelinek PR tree-optimization/109410 * tree-ssa-reassoc.cc (build_and_add_sum): Split edge from entry block if first statement of the function is a call to returns_t= wice function. * gcc.dg/pr109410.c: New test. (cherry picked from commit 51856718a82ce60f067910d9037ca255645b37eb)=