From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E88D13858D39; Mon, 3 Apr 2023 18:07:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E88D13858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680545263; bh=MKLb6BF7Qnnr+Sgi1+Vibk00+vQ2/acyxT7pUEtCOGY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QairLXFMfWma0Rep/VjwM7+Um4tO902l49CnwH7wbHs9kM+tsg5WEzVsxocN4L6zO PPbvw88G3wBouo7b1BjCeE68l6HYz+LH6b8JZEpKdDxsIq31FVDrfbF7KcUh4btrGu WQs7d+gyzbWedNeMM7xZHj18ItO67+iusE+BCYWM= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109393] Very trivial address calculation does not fold Date: Mon, 03 Apr 2023 18:07:43 +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: pinskia 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: --- 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=3D109393 --- Comment #1 from Andrew Pinski --- Note sometimes -fwrapv will optimize things because it can assume that over= flow is defined as wrapping and this is one case that is true. Yes it sounds cou= nter intuitive but it is true. Even re-association happens more with -fwrapv :).=