From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 04613385588A; Sat, 10 Jun 2023 13:04:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 04613385588A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686402250; bh=zkbEQ11TmYUr8OT1TQrLFUMJGOUHWO2J3jxk+PF5Q80=; h=From:To:Subject:Date:In-Reply-To:References:From; b=x5dulVkvzmSoMMrNSpUMCRrVFUd/QpmKbI4ErvB7FryXlr4O/8Z1lC2VWOOSd5T0D 1yoDd3t0Q/yQrUun20q+yIrmDMUOi8P184dOrFIY6PL7SAYs4dYBK9hh8jqN+7LRkK Lx5bHMTQrBZbYcLg3z+9XCAu9xPRGP5Nk6LnAHm0= From: "llvm at rifkin dot dev" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110203] Sum should optimize to closed form Date: Sat, 10 Jun 2023 13:04:09 +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.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: llvm at rifkin dot dev 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=3D110203 --- Comment #2 from Jeremy R. --- I wasn't able to get this to work with unsigned either https://godbolt.org/z/bGcW7ebjd but maybe there's some other way to trigger this optimization=