From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 13CBF3858C60; Mon, 24 Jan 2022 09:07:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13CBF3858C60 From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/102087] [12 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: in determine_exit_conditions, at tree-ssa-loop-manip.c:1049 since r12-3136-g3673dcf6d6baeb67 Date: Mon, 24 Jan 2022 09:07:42 +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: 12.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: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2022 09:07:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102087 --- Comment #23 from CVS Commits --- The master branch has been updated by Jiu Fu Guo : https://gcc.gnu.org/g:634de54f9c421b7069865d0d7365ad97412f34bd commit r12-6834-g634de54f9c421b7069865d0d7365ad97412f34bd Author: Jiufu Guo Date: Fri Jan 21 17:03:50 2022 +0800 Update the type of control.base after changed This patch correct the type of niter->control.base, when it is updated as a PLUS expr. During build PLUS expr, the result type should align with the type of the operands. PR tree-optimization/102087 gcc/ChangeLog: * tree-ssa-loop-niter.cc (number_of_iterations_until_wrap): Correct PLUS result type. gcc/testsuite/ChangeLog: * gcc.dg/pr102087_1.c: New test.=