public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/113827] MrBayes benchmark redundant load
Date: Fri, 09 Feb 2024 04:28:07 +0000 [thread overview]
Message-ID: <bug-113827-4-sPXys2kmFZ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-113827-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113827
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2024-02-09
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>a redundant scalar load
I don't see any redundant load in that loop.
```
L3:
movq (%rdi), %rax ;; load a[i] from rdi
vmovups (%rax), %xmm1 ;; load rax[0-3] into vector
vdivps %xmm0, %xmm1, %xmm1 ;; divide
vmovups %xmm1, (%rax) ;; store result back into rax[0-3]
addq $16, %rax ;; add 4*4 to rax
movq %rax, (%rdi) ;; store rax back into rdi
addq $8, %rdi ;; add 8 to rdi
cmpq %rdi, %rdx
jne .L3 ;; compare and loop back
```
That is a[i] is different between each iterations.
Maybe you reduced this code too much?
next prev parent reply other threads:[~2024-02-09 4:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-08 11:38 [Bug target/113827] New: " rdapp at gcc dot gnu.org
2024-02-08 14:29 ` [Bug target/113827] MrBayes benchmark redundant load on riscv rdapp at gcc dot gnu.org
2024-02-09 4:28 ` pinskia at gcc dot gnu.org [this message]
2024-02-09 5:10 ` [Bug target/113827] MrBayes benchmark redundant load pinskia at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-113827-4-sPXys2kmFZ@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).