From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 82A443858409; Mon, 27 Sep 2021 08:10:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82A443858409 From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/102473] [12 Regression] 521.wrf_r 5% slower at -Ofast and generic x86_64 tuning after r12-3426-g8f323c712ea76c Date: Mon, 27 Sep 2021 08:10:03 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jamborm 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: 12.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 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: Mon, 27 Sep 2021 08:10:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102473 --- Comment #10 from Martin Jambor --- (In reply to Hongtao.liu from comment #6) > Does it means cycles?=20 Basically yes, AFAIK. Basically I ran both versions under perf record and then processed the output (so that is not so wide) of perf report -n --stdio --percent-limit=3D2 (where -n is the thing that gives you "samples"). > Vtune data show __module_mp_wsm5_MOD_nislfv_rain_plm has less instructions > retired and clocksticks after my commit. And the regression comes from > libc-2.31.so which shoud be the same. I tend to think that any glibc from 2.29 is good enough to reproduce this. For what it's worth, the system I tried this on has glib 2.33 My examination was very preliminary, because wrf takes ages to build, I hoped I would point people to the important bit. I am not sure I succeeded though. (In reply to Hongtao.liu from comment #8) >=20 > I'm going to revert the patch. This is your call. I actually dot not think that compiling wrf_r for pre-AVX2 targets is a very important use case, the regression was just so consistent that I thought it was worth investigating (and of course it would be great if it could be avoided). So it depends whether the patch has speed benefits in more common circumstances or not.=