From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 992D33858C52; Mon, 29 May 2023 14:42:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 992D33858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685371339; bh=3sn3bWr3B7IlJFRlaqoRQJvBU75kcTAbe5EfZM8lKOQ=; h=From:To:Subject:Date:From; b=fdWhjRnxS7N7t6oNzaiFUKRAR9Q1PiB/X0usLrQgpst9bJi7Y4dmPPt365AfTY+ZT 1DcJweS7wOzQjJCV7IimJmgXI8MbCS3PjAT2XLrSGqoZYpVfpynOaYQaQlIgtnTz/k /r6qAtNvy90V8jYtWiDIPcbz9jJWN13pdJIJ3a1M= From: "d_vampile at 163 dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110024] New: [Bug] 5% performance drop on important benchmark after r260951. Date: Mon, 29 May 2023 14:42:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: d_vampile at 163 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 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=3D110024 Bug ID: 110024 Summary: [Bug] 5% performance drop on important benchmark after r260951. Product: gcc Version: 10.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: d_vampile at 163 dot com Target Milestone: --- After the patch is submitted on AArch64, the performance of copying subitem= s in the stream benchmark decreases by 3%. Alternatively, you can obtain it from https://github.com/jeffhammond/stream/archive/master.zip. Compiling & Running: gcc -fopenmp -O -DSTREAM_ARRAY_SIZE=3D100000000 stream.c -o stream ./stream Before modification: (copy subitem) ldr d0, [x2, x0, lsl #3] str d0, [x3, x0, lsl #3] add x0, x0, #0x1 cmp x1, x0 b.ne 400a00 ldr x19, [sp, #16] ldp x29, x30, [sp], #32 ret After the modification: ldr x2, [x3, x0, lsl #3] str x2, [x4, x0, lsl #3] add x0, x0, #0x1 cmp x1, x0 b.ne 400a00 ldr x19, [sp, #16] ldp x29, x30, [sp], #32 ret=