From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 795D43857000; Wed, 26 Oct 2022 09:16:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 795D43857000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666775764; bh=c6Pj3FcvzlKVRizZtZNRzEnQ9OtWsrQzu6vzBu2w8rw=; h=From:To:Subject:Date:From; b=S437OPDTyiMR8aADNd7XQs0IWWSLI8f/fniQlWyFp1LE+NQy6jTPGy+4/zdgXLknv jB36gnuvly9jTYZVzut+pLJvPrTmrd2mqkz/6stE/1E5SsuLRk0gQPGXsTEi2KuDSd dJipRRQtDkTNG7bXH9QR32glYUI1xcZtzr/Rc+iI= From: "rvmallad at amazon dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107413] New: Perf loss ~14% on 519.lbm_r SPEC cpu2017 benchmark Date: Wed, 26 Oct 2022 09:16:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rvmallad at amazon dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D107413 Bug ID: 107413 Summary: Perf loss ~14% on 519.lbm_r SPEC cpu2017 benchmark Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rvmallad at amazon dot com Target Milestone: --- Created attachment 53775 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53775&action=3Dedit Input and source files. Below is some perf data executing the 519.lbm_r benchmark on aarch64 architecture (Graviton 3 processor). I have comparison of the baseline perf (mainline commit ID: f56d48b2471c388401174029324e1f4c4b84fcdb) vs. a fix for the same (revert the code change in commit ID: b5b33e113434be909e8a6d7b93824196fb6925c0). Steps to compile: $ gcc -std=3Dc99 -mabi=3Dlp64 -g -Ofast -mcpu=3Dnative lbm.i main.i -lm -fl= to -o 519_lbm_r_base $ time ./519_lbm_r_base 3000 reference.dat 0 0 100_100_130_ldc.of real 2m50.946s Reverting the code changes in commit ID: b5b33e113434be909e8a6d7b93824196fb6925c0 $ time ./519_lbm_r_fix 3000 reference.dat 0 0 100_100_130_ldc.of real 2m27.157s The code change reverted was: [AArch64] PR84114: Avoid reassociating FMA Author: Wilco Dijkstra Date: Mon Mar 5 14:40:55 2018 +0000 Please find attached the files to reproduce this issue and the fix.=