From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B21F33858C39; Fri, 9 Feb 2024 01:11:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B21F33858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707441089; bh=K588VQ2nQuLFvll7YzX2SObjO8tIUGNlFIAdr6S4Oz0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nh4WIslEriF2rkRfu1oMHX/WMtIgnsvW50SwALy+uv1NSa2P75Nb+02Zum8UHRBWa /h5EjHuIlhA3hLy3urTMBEaKSloBl817CmokgWRY7hKsP1O6WxM1ZFze1d+I1ckJzY xRSDUH+UyQIR67Ef1R23gL64AxnqAjWOLjifnkpc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113838] regression of redundant load operation introduced by -fno-tree-forwprop introduce Date: Fri, 09 Feb 2024 01:11:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: cf_gcctarget component bug_status resolution 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=3D113838 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64 Component|tree-optimization |target Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski --- The difference from the gimple level IR: ``` _14 =3D g_26[5][3][0]; _15 =3D (int) _14; _16 =3D _13 ^ _15; g_51 =3D _16; if (_13 !=3D _15) ``` vs: ``` _14 =3D g_26[5][3][0]; _15 =3D (int) _14; _16 =3D _13 ^ _15; g_51 =3D _16; if (_16 !=3D 0) goto ; [50.00%] else goto ; [50.00%] ``` This is expected behavior even for the x86_64 target=