From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3E80E3858404; Thu, 10 Aug 2023 06:57:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E80E3858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691650636; bh=vdkc4QT6dkCUQ8iuq1tbT2GS/X7bqkOoQNbqtB8Afjw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZEphQLW+aTF6qVgc60SLoG1MkmJd4tpx0BIt+KkV/dQPSZa7t7wxlUhdIR6AdWYUp DxrQdHOpL/Sz104Ub6I6pCCk/9Z/zgo18FZRV7DXaKfZe2gijn/eypKJnfARVAnEee A0GvnuTQIrd5nxPrHlMek8zTevHuCc8KG6glE4WI= From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/66678] loop counter not accurately described by vrp Date: Thu, 10 Aug 2023 06:57:15 +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: 6.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D66678 --- Comment #5 from rguenther at suse dot de --- On Wed, 9 Aug 2023, pinskia at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66678 >=20 > --- Comment #4 from Andrew Pinski --- > So in GCC 12+ after evrp > # RANGE [0, 4294967294] NONZERO 4294967295 > _1 =3D (long unsigned intD.16) i_9; > # RANGE [0, 17179869176] NONZERO 17179869180 > _2 =3D _1 * 4; > ... > # RANGE [1, 4294967295] > i_17 =3D i_9 + 1; >=20 > So maybe this has been fix ... Note with ranger there's a regression WRT loop IVs not handled by SCEV because it no longer iterates.=