From: Vladimir Makarov <vmakarov@redhat.com>
To: Richard Biener <richard.guenther@gmail.com>,
Lehua Ding <lehua.ding@rivai.ai>
Cc: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com, juzhe.zhong@rivai.ai
Subject: Re: [PATCH V3 1/7] df: Add DF_LIVE_SUBREG problem
Date: Tue, 14 Nov 2023 09:52:33 -0500 [thread overview]
Message-ID: <89b47884-6ca0-dbf2-07e6-a475eff83ff9@redhat.com> (raw)
In-Reply-To: <CAFiYyc38q7bMqie59Vf6mp2egoAJORYpufmEOVfC3EUskBTi-g@mail.gmail.com>
On 11/14/23 04:03, Richard Biener wrote:
>
> I suggest you farm bugzilla for the compile-time-hog / memory-hog testcases.
> I do have a set of "large" testcases. Scanning results points at
> PRs 36262, 37448, 39326, 69609 all having RA in the 20% area at
> -O0 -g.
>
> It's also a good idea to take say cc1files (set of preprocessed sources
> that produce GCCs cc1) and look at the overall impact of compile-time
> and memory-usage of a change on those which are representative
> for "normal" TUs as opposed to the PRs above which often are
> large machine-generated TUs (an important area where GCC usually
> shines, at least at -O1).
>
RA is expensive optimization pass in any compiler even if the fastest
algorithms are used.
The most illustrative PR for this is 108500 where RA at -O0 spent 90%
(200s) of compilation time. But it is nothing in comparison with LLVM
"fast" RA algorithm where LLVM-14 spent almost 100% or 41500s (200 times
more than GCC) at -O0.
LLVM greedy RA is even worse I stopped LLVM after 120hours at -O1 when
GCC spent 30min at -O1. In contrast to LLVM, GCC RA also solves code
selection task.
IMHO GCC is better scaling compiler and better compiler for big TUs and
functions. When I worked on CRuby, I saw an interesting results of GCC
vs LLVM. Clang-15 with -O3 produced 70% slower (on a simple Ruby test)
Ruby basic interpreter code than GCC-12 with -O3. Also Clang spends 20
times more time to compile major Ruby interpreter file vm.c with huge
major interpreter function (315s for clang vs 15s for GCC).
next prev parent reply other threads:[~2023-11-14 14:52 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-12 12:08 [PATCH V3 0/7] ira/lra: Support subreg coalesce Lehua Ding
2023-11-12 12:08 ` [PATCH V3 1/7] df: Add DF_LIVE_SUBREG problem Lehua Ding
2023-11-13 22:38 ` Vladimir Makarov
2023-11-14 8:14 ` Richard Biener
2023-11-14 8:38 ` Lehua Ding
2023-11-14 9:03 ` Richard Biener
2023-11-14 14:52 ` Vladimir Makarov [this message]
2023-11-14 17:18 ` Vladimir Makarov
2023-11-14 18:29 ` Vladimir Makarov
2023-11-20 20:11 ` Richard Sandiford
2023-11-21 6:35 ` Lehua Ding
2023-11-12 12:08 ` [PATCH V3 2/7] ira: Switch to live_subreg data Lehua Ding
2023-11-14 20:26 ` Vladimir Makarov
2023-11-12 12:08 ` [PATCH V3 3/7] ira: Support subreg live range track Lehua Ding
2023-11-14 20:37 ` Vladimir Makarov
2023-11-12 12:08 ` [PATCH V3 4/7] ira: Support subreg copy Lehua Ding
2023-11-16 21:13 ` Vladimir Makarov
2023-11-17 2:06 ` Lehua Ding
2023-11-17 14:05 ` Vladimir Makarov
2023-11-18 8:00 ` Lehua Ding
2023-11-18 8:06 ` Sam James
2023-11-18 8:16 ` Lehua Ding
2023-11-18 8:24 ` Sam James
2023-11-18 8:27 ` Lehua Ding
2023-11-12 12:08 ` [PATCH V3 5/7] ira: Add all nregs >= 2 pseudos to tracke subreg list Lehua Ding
2023-11-16 21:14 ` Vladimir Makarov
2023-11-12 12:08 ` [PATCH V3 6/7] lra: Switch to live_subreg data flow Lehua Ding
2023-11-12 12:08 ` [PATCH V3 7/7] lra: Support subreg live range track and conflict detect Lehua Ding
2023-11-13 16:43 ` [PATCH V3 0/7] ira/lra: Support subreg coalesce Dimitar Dimitrov
2023-11-15 2:10 ` Lehua Ding
2023-11-13 19:37 ` Vladimir Makarov
2023-11-14 5:37 ` Lehua Ding
2023-11-14 23:33 ` Peter Bergner
2023-11-14 23:22 ` Peter Bergner
2023-11-15 3:12 ` Lehua Ding
2023-11-15 3:33 ` Peter Bergner
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=89b47884-6ca0-dbf2-07e6-a475eff83ff9@redhat.com \
--to=vmakarov@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=juzhe.zhong@rivai.ai \
--cc=lehua.ding@rivai.ai \
--cc=richard.guenther@gmail.com \
--cc=richard.sandiford@arm.com \
/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).