From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 152273857432; Tue, 10 May 2022 21:02:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 152273857432 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105546] [11/12/13 Regression] ifconversion introduces many compares with loads Date: Tue, 10 May 2022 21:02:49 +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: 11.3.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 11.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed cf_gcctarget keywords bug_status cf_reconfirmed_on target_milestone short_desc component 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2022 21:02:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105546 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Target| |x86_64-linux-gnu Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2022-05-10 Target Milestone|--- |11.4 Summary|load introduction when |[11/12/13 Regression] |initializing a struct |ifconversion introduces | |many compares with loads Component|middle-end |target --- Comment #2 from Andrew Pinski --- This is ifconversion changing: if (g_344.0_1 !=3D 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870912]: [local count: 1073741824]: # _16 =3D PHI <4499926296329723445(2), -6(3)> # _18 =3D PHI <3(2), 3409572933270154779(3)> # _20 =3D PHI <171(2), 161(3)> # _22 =3D PHI <-1(2), -8(3)> # _24 =3D PHI <27943(2), 1(3)> # _26 =3D PHI <2738(2), 65526(3)> Into straight line code but keeps the load around. THis is a target issue.=