public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113682] Branches in branchless binary search rather than cmov/csel/csinc Date: Thu, 01 Feb 2024 10:30:50 +0000 [thread overview] Message-ID: <bug-113682-4-HLqXc9ARKc@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-113682-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113682 Tamar Christina <tnfchris at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tnfchris at gcc dot gnu.org --- Comment #4 from Tamar Christina <tnfchris at gcc dot gnu.org> --- note that on aarch64 the situation isn't that simple and whether the csel or branch is better in the loop depends on a number of factors. We did extensive benchmarking on this on various uArches and there are a number of cases where the csel inside the loop ends up being significantly worse and the branch misprediction penalty also highly depends on the uArch. In the end the conclusion was though that to have chance to do this properly we would have to form conditional operations at the GIMPLE level and not in RTL as we do today.
next prev parent reply other threads:[~2024-02-01 10:30 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-01-31 13:48 [Bug other/113682] New: " redbeard0531 at gmail dot com 2024-01-31 14:16 ` [Bug rtl-optimization/113682] " rguenth at gcc dot gnu.org 2024-01-31 16:53 ` pinskia at gcc dot gnu.org 2024-01-31 18:00 ` [Bug middle-end/113682] " pinskia at gcc dot gnu.org 2024-02-01 10:30 ` tnfchris at gcc dot gnu.org [this message] 2024-02-01 13:52 ` redbeard0531 at gmail dot com 2024-02-02 1:04 ` pinskia at gcc dot gnu.org 2024-04-02 17:46 ` [Bug rtl-optimization/113682] " tnfchris at gcc dot gnu.org 2024-04-02 18:01 ` pinskia at gcc dot gnu.org 2024-04-03 11:10 ` tnfchris 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-113682-4-HLqXc9ARKc@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: linkBe 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).