public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Georgi Marinov <sanmayce@hotmail.com>
To: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Bad performance (with GCC 11.3.0 - O3) of a small etude in C
Date: Fri, 8 Jul 2022 04:31:31 +0000	[thread overview]
Message-ID: <PAXP251MB0318FCF8821064E384BFC83FC0829@PAXP251MB0318.EURP251.PROD.OUTLOOK.COM> (raw)

Hi,
just wanted to let you know that I found that GCC 11.3.0 -O3 is generating code with many unnecessary jumps (while CLANG 14.0.1 -O3 not) in a small partitioning (for Quicksort) 15 lines of code etude.
In case you are interested I will submit the three disassembly outputs, plus ICL 19.0 -O3, ICL is horrible in that, ICL 15.0 was good but they ruined their legacy.
Generally, GCC is my target compiler, yet, CLANG is better in my usecases. I would like some of your coders to look it up, my wish is GCC to catch up.

Regards

             reply	other threads:[~2022-07-08  4:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-08  4:31 Georgi Marinov [this message]
2022-07-08  8:09 ` Martin Liška

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=PAXP251MB0318FCF8821064E384BFC83FC0829@PAXP251MB0318.EURP251.PROD.OUTLOOK.COM \
    --to=sanmayce@hotmail.com \
    --cc=gcc@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).