From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C9CF6383815F; Tue, 21 Feb 2023 13:03:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9CF6383815F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676984603; bh=IC/XtCJeNIlKsm8csycdvh1q5aF7/nQbjEmWnx+6i14=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XKsgl+mNk3X44xBE65AdTT0Qf+bgJBUqK+0yc9hSn3OPV2E1U+eRKj0Wkig2dvDK9 XUytO5DHAbJX9kar3IEdcebUedOkTtRXVjJ9JSAkQ200TaGu448ilLsY7wv5MBw1bu NB7PlzT+3YR7Xp1njJyBkjl5O8Cu4O98WYolE+3o= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108793] [12/13 Regression] ICE: verify_gimple failed Date: Tue, 21 Feb 2023 13:03:22 +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-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: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 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=3D108793 --- Comment #4 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:a7e706df2280de4a42f68b6c44401e4348d3593c commit r13-6258-ga7e706df2280de4a42f68b6c44401e4348d3593c Author: Richard Biener Date: Mon Feb 20 12:58:50 2023 +0100 tree-optimization/108793 - niter compute type mismatch When computing the number of iterations until wrap types are mixed up, eventually leading to checking ICEs with a pointer bitwise inversion. The following uses niter_type for the calculation. PR tree-optimization/108793 * tree-ssa-loop-niter.cc (number_of_iterations_until_wrap): Use convert operands to niter_type when computing num. * gcc.dg/torture/pr108793.c: New testcase.=