From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D75AB384D16E; Thu, 6 Oct 2022 09:27:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D75AB384D16E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665048467; bh=5leHjwGx2Id4IP13IF7O8NsSaQsLU+ma0PqlKBjtwdo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=unf7g9C3salsmMoPMkRZ/+KGowIvLZVrYsNlJK4r5BPvTpYJ4GN0uqNLxKINfEcGj lp5QRJslJw3k8+flyJBO19tcjgU/dszRD3cH0OaEfF9RcXSEDk3Dj1dXQHxZtDVs7y kkY6GDd9aIEqbiNl9UH0Rjd/PwCvBIr5cWzjNOXU= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107114] [13 Regression] Failure to discover range results in bogus warning Date: Thu, 06 Oct 2022 09:27:45 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority keywords target_milestone 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=3D107114 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P4 |P3 Keywords| |missed-optimization Target Milestone|--- |13.0 --- Comment #5 from Richard Biener --- (In reply to Jeffrey A. Law from comment #4) > I'll double check, but IIRC we throw away the loop structures at the end = of > DOM and they're supposed to be rebuilt (which appears to be happening as = we > re-construct LCSSA). If you elide a loop it gets removed by fixup but we never fully re-build loops. Eliding a loop might have removed a stmt based on which undefined behavior on overflow we could have derived an upper bound for the outer loo= p. But you really have to sit down and see why we are no longer deriving number of iterations [upper bound].=