public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Lehua Ding <lehua.ding@rivai.ai>
To: Vladimir Makarov <vmakarov@redhat.com>, gcc-patches@gcc.gnu.org
Cc: richard.sandiford@arm.com, juzhe.zhong@rivai.ai
Subject: Re: [PATCH V3 0/7] ira/lra: Support subreg coalesce
Date: Tue, 14 Nov 2023 13:37:33 +0800	[thread overview]
Message-ID: <AC779AF8A5C10B98+b211c190-72fa-4bb0-92f6-e59683ce2cfb@rivai.ai> (raw)
In-Reply-To: <279a7599-7204-e8f7-3a1f-b8cf4ccffc0c@redhat.com>

Hi Vladimir,

On 2023/11/14 3:37, Vladimir Makarov wrote:
> 
> On 11/12/23 07:08, Lehua Ding wrote:
>> V3 Changes:
>>    1. fix three ICE.
>>    2. rebase
>>
>> Hi,
>>
>> These patchs try to support subreg coalesce feature in
>> register allocation passes (ira and lra).
>>
> I've started review of v3 patches and here is my initial general 
> criticism of your patches:
> 
>    * Absence of comments for some functions, e.g. for `HARD_REG_SET 
> operator>> (unsigned int shift_amount) const`.
> 
>    * Adding significant functionality to existing functions is not 
> reflected in the function comment, e.g. in ira_set_allocno_class.
> 
>    * A lot of typos, e.g. `pesudo` or `reprensent`.  I think you need to 
> check spelling of you comments (I myself do spell checking in emacs by 
> ispell-region command).
> 
>    * Grammar mistakes, e.g `Flag means need track subreg live range for 
> the allocno`.  I understand English is not your native languages (as for 
> me).  In case of some doubts I'd recommend to check grammar in ChatGPT 
> (Proofread: <english> text).
> 
>    * Some local variables use upper case letters (e.g. `int A`) which 
> should be used for macros or enums according to GNU coding standard 
> (https://www.gnu.org/prep/standards/standards.html) .
> 
>    * Sometimes you put one space at the end of sentence.  Please see GNU 
> coding standard and GCC coding conventions 
> (https://gcc.gnu.org/codingconventions.html)
> 
>    * There is no uniformity in your code, e.g. sometimes you use 'i++', 
> sometimes `++i` or `i += 1`.  Although the uniformity is not necessary, 
> it makes a better impression about the patches.

Sorry for these issue, I'll address all those comments.

> I also did not find what targets did you use for testing.  I am asking 
> this because I see new testsuite failures (apx-spill_to_egprs-1.c) even 
> on x86-64.  It might be nothing as the test expects a specific code 
> generation.

There was testing x86, aarch64, riscv not long ago, but it looks like 
I'm missing something, I just locally tested with the latest code and 
also reproduced this fail you mentioned, along with a c++ fail 
(pr106877.C). I'll have a look at the cause.

> Also besides testing major targets I'd recommend testing at least one 
> big endian target (I'd recommend ppc64be. gcc110.fsfrance.org could be 
> used for this).  Plenty RA issues occur because BE targets are not tested.

You said the address looks a bit wrong, it should be this 
gcc110.fsffrance.org right? I looked for it and it looks like you have 
to go to portal.cfarm.net first to apply for an account on this site, 
I'll try that, thanks a lot.

-- 
Best,
Lehua (RiVAI)
lehua.ding@rivai.ai

  reply	other threads:[~2023-11-14  5:37 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-12 12:08 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
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 [this message]
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=AC779AF8A5C10B98+b211c190-72fa-4bb0-92f6-e59683ce2cfb@rivai.ai \
    --to=lehua.ding@rivai.ai \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=juzhe.zhong@rivai.ai \
    --cc=richard.sandiford@arm.com \
    --cc=vmakarov@redhat.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).