From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A58593858C53; Fri, 14 Jul 2023 14:39:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A58593858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689345571; bh=STHTaDmtetvl2Pbl+TcI+t9fZgr1aENgRQwRo/RVZvA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hTCov8HrduNSMYzSCF+rn+bOwccx9Ff6i7icz3HAb3ifcRox9hqfBYW356RKJW+z0 WAImR4RImLrPzGVr0/RSpsaCBC1/bFt2iAdWa+2BsLRHhdfp8TbBDPAZ/6GdAaPlyI 6dvFTPcywU5mCRtxg/I5ExSTHOZ5mHsUryAQsYAo= From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110649] [14 Regression] 25% sphinx3 spec2006 regression on Ice Lake and zen between g:acaa441a98bebc52 (2023-07-06 11:36) and g:55900189ab517906 (2023-07-07 00:23) Date: Fri, 14 Jul 2023 14:39:31 +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: 14.0 X-Bugzilla-Keywords: missed-optimization, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka 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: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also everconfirmed cf_reconfirmed_on bug_status 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=3D110649 Jan Hubicka changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D10647 Ever confirmed|0 |1 Last reconfirmed| |2023-07-14 Status|UNCONFIRMED |NEW --- Comment #3 from Jan Hubicka --- Thanks for bisecting this! We also have PR10647 which is tracked to this change. The change correct loop profile after header copying: test() { for (int i =3D 0; i < 10; i++) test2(); } has probability of exit conditional 90.9% before loop header copying (since= it technically iterates 10 times) while after loop header copying and optimizi= ng out the constant "if (0<10)" test it has only 90% loopback probability. So probably fixing the bug above triggers something else. I will first look at PR10647 and see if I can figure out what is going on there.=