From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C7BFA3858C52; Tue, 10 Jan 2023 19:26:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C7BFA3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673378760; bh=dt1oL1C3KYw+svdAjrIbyehRQ1dJM5kX6fn7tLMZmQM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PCMf1IHCKW5LtDM1kaayToyW4eTaPbHAsgQ7QVW80P4EnsVJ19v3A9pDtB+Z7fdMJ F1QuCjdeYw53nZ/csBZyt7DPBXz6ReJtMVa8RD3mseN4CSL5OWPX/pv0bf3BlzIFrA IzdpE6DvxQ217MqQyvA/YPAYYvr6ug1rzLVDWI78= From: "amacleod at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108360] [13 Regression] Dead Code Elimination Regression at -Os since r13-2048-g418b71c0d535bf Date: Tue, 10 Jan 2023 19:26:00 +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: amacleod at redhat dot com 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: 13.0 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=3D108360 --- Comment #5 from Andrew Macleod --- The key change is that condition: _6 =3D f.5_5 << 4; e =3D _6; h_23 =3D (short int) _6; if (_21 =3D=3D -1) goto ; [50.00%] else goto ; [50.00%] On the false edge, we lose the ability to determine that h_23 is [16,16], a= nd instead, it remains [0,0][16,16].. that causes us to not be able to eliminate the branch=