From: Tamar Christina <Tamar.Christina@arm.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: Jeff Law <jeffreyalaw@gmail.com>,
Roger Sayle <roger@nextmovesoftware.com>,
'GCC Patches' <gcc-patches@gcc.gnu.org>,
Richard Sandiford <Richard.Sandiford@arm.com>
Subject: RE: [PATCH] PR rtl-optimization/106594: Preserve zero_extend in combine when cheap.
Date: Mon, 6 Mar 2023 12:11:47 +0000 [thread overview]
Message-ID: <VI1PR08MB5325F47D6B35BB12650641CEFFB69@VI1PR08MB5325.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <20230306120846.GM25951@gate.crashing.org>
> Hi!
>
> On Sun, Mar 05, 2023 at 03:33:40PM -0600, Segher Boessenkool wrote:
> > On Sun, Mar 05, 2023 at 08:43:20PM +0000, Tamar Christina wrote:
> > Yes, *look* better: I have seen no proof or indication that this would
>
> ("looks", I cannot type, sorry)
>
> > actually generate better code, not even on just aarch, let alone on
> > the majority of targets. As I said I have a test running, you may be
> > lucky even :-) It has to run for about six hours more and after that
> > it needs analysis still (a few more hours if it isn't obviously always
> > better or worse), so expect results tomorrow night at the earliest.
>
> The results are in:
>
> $ perl sizes.pl --percent C[12]
> C1 C2
> alpha 7082243 100.066%
> arc 4207975 100.015%
> arm 11518624 100.008%
> arm64 24514565 100.067%
> armhf 16661684 100.098%
> csky 4031841 100.002%
> i386 0 0
> ia64 20354295 100.029%
> m68k 4394084 100.023%
> microblaze 6549965 100.014%
> mips 10684680 100.024%
> mips64 8171850 100.002%
> nios2 4356713 100.012%
> openrisc 5010570 100.003%
> parisc 8406294 100.002%
> parisc64 0 0
> powerpc 11104901 99.992%
> powerpc64 24532358 100.057%
> powerpc64le 21293219 100.062%
> riscv32 2028474 100.131%
> riscv64 9515453 100.120%
> s390 20519612 100.279%
> sh 0 0
> shnommu 1840960 100.012%
> sparc 5314422 100.004%
> sparc64 7964129 99.992%
> x86_64 0 0
> xtensa 2925723 100.070%
>
>
> C1 is the original, C2 with your patch. These numbers are the code sizes of a
> Linux kernel, some defconfig for every arch. This is a good measure of how
> effective combine was.
>
> The patch is a tiny win for sparc64 and classic powerpc32 only, but bad
> everywhere else. Look at that s390 number! Or riscv, or most of the arm
> variants (including aarch64).
>
> Do you want me to look in detail what causes this regression on some
> particular target, i.e. why we really still need the expand_compound
> functionality there?
>
Hi,
Thanks for having a look! I think the Richards are exploring a different solution on the PR
so I don't think it's worth looking at now (maybe in stage-1?). Thanks for checking though!
I Appreciate you all helping to get this fixed!
Kind Regards,
Tamar
> (Btw. "0" means the target did not build. For the x86 targets this is just more
> -Werror madness that seeped in it seems. For parisc64 and sh it is the choice
> of config. Will fix.)
>
>
> Segher
next prev parent reply other threads:[~2023-03-06 12:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-04 18:32 Roger Sayle
2023-03-04 22:17 ` Segher Boessenkool
2023-03-05 19:28 ` Tamar Christina
2023-03-05 19:56 ` Jeff Law
2023-03-05 20:43 ` Tamar Christina
2023-03-05 21:33 ` Segher Boessenkool
2023-03-06 12:08 ` Segher Boessenkool
2023-03-06 12:11 ` Tamar Christina [this message]
2023-03-06 12:47 ` [PATCH] combine: Try harder to form zero_extends [PR106594] Richard Sandiford
2023-03-06 13:58 ` Segher Boessenkool
2023-03-06 15:08 ` Richard Sandiford
2023-03-06 16:18 ` Jakub Jelinek
2023-03-06 16:34 ` Richard Sandiford
2023-03-06 18:31 ` Segher Boessenkool
2023-03-06 19:13 ` Richard Sandiford
2023-03-06 23:31 ` Segher Boessenkool
2023-03-08 11:58 ` Richard Sandiford
2023-03-08 22:50 ` Segher Boessenkool
2023-03-09 10:18 ` Richard Sandiford
2023-03-06 22:58 ` Segher Boessenkool
2023-03-06 18:13 ` Segher Boessenkool
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=VI1PR08MB5325F47D6B35BB12650641CEFFB69@VI1PR08MB5325.eurprd08.prod.outlook.com \
--to=tamar.christina@arm.com \
--cc=Richard.Sandiford@arm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jeffreyalaw@gmail.com \
--cc=roger@nextmovesoftware.com \
--cc=segher@kernel.crashing.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).