From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3890D3858D28; Thu, 28 Mar 2024 11:13:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3890D3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711624424; bh=S9l/A1hP4VFhkrinBj7zTmre+sdaZfjcDnMT2tZmYgA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=t+9TTNXAGtfBIw/zhhYp7ilXYpw1HFczSc6rcATtDnWD9Zriiy4co/m1/6kROV/F+ TGYIGIeoSAgausbdCSh49McQJZcBRjzVJaZ/lE/ZU/4AFoO5XTght3bh4pXE4ckS4G cXyd/1iuSTtGpohbaa1hdBgtMZNzYfgwzkWEDiE8= From: "652023330028 at smail dot nju.edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112723] Missed optimization for invariants 'c+c' when c += -2147483647-1 and c is a global variable Date: Thu, 28 Mar 2024 11:13: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: 14.0 X-Bugzilla-Keywords: missed-optimization, TREE X-Bugzilla-Severity: enhancement X-Bugzilla-Who: 652023330028 at smail dot nju.edu.cn 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=3D112723 --- Comment #3 from Yi <652023330028 at smail dot nju.edu.cn> --- https://godbolt.org/z/zKq3dsqW3 This is a regression since gcc-7.3. If the bisection right: https://github.com/gcc-mirror/gcc/commit/540b5cb6c70.=