public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: 钟居哲 <juzhe.zhong@rivai.ai>
To: "Dimitar Dimitrov" <dimitar@dinux.eu>, 陈硕 <shuo.chen@rivai.ai>
Cc: 丁乐华 <lehua.ding@rivai.ai>, gcc-patches <gcc-patches@gcc.gnu.org>,
	夏晋 <jin.xia@rivai.ai>, vmakarov <vmakarov@redhat.com>,
	"richard.sandiford" <richard.sandiford@arm.com>
Subject: Re: Re: [PATCH 2/4] df: Add DF_LIVE_SUBREG problem
Date: Thu, 9 May 2024 06:54:51 +0800	[thread overview]
Message-ID: <152D7D265CFEB15B+2024050906545079873616@rivai.ai> (raw)
In-Reply-To: <Zjug5DBqNcn0Crr7@kendros.lan>

[-- Attachment #1: Type: text/plain, Size: 2360 bytes --]

Thanks Dim.

We noticed there is regression in aarch64 CI.
We will fix it with following your comments and regression in aarch64 CI.



juzhe.zhong@rivai.ai
 
From: Dimitar Dimitrov
Date: 2024-05-08 23:57
To: 陈硕
CC: 丁乐华; gcc-patches; 钟居哲; 夏晋; vmakarov; richard.sandiford
Subject: Re: [PATCH 2/4] df: Add DF_LIVE_SUBREG problem
On Wed, May 08, 2024 at 11:34:48AM +0800, 陈硕 wrote:
> Hi Dimitar
> 
> 
> I send a patch just now, modifies accordingly
> 
> 
> some comments:
> 
> 
> &gt;Nit: Should have two spaces after the dot, per GNU coding style.&nbsp; I'd suggest
> &gt;to run the contrib/check_GNU_style.py script on your patches.
> Do you mean "star" by "dot", i.e. "/*----" should be "/* ----"?
 
No, I was referring to the following paragraph from
https://www.gnu.org/prep/standards/standards.html :
   "Please put two spaces after the end of a sentence in your comments, ..."
 
To fix, simply add a second space after the dot, e.g.:
  -   Like DF_LR, but include tracking subreg liveness. Currently used to provide
  +   Like DF_LR, but include tracking subreg liveness.  Currently used to provide
 
 
For reference, here is the output from the style checker:
  $ git show | ./contrib/check_GNU_style.py -
  === ERROR type #4: dot, space, space, new sentence (24 error(s)) ===
  ...
  gcc/df-problems.cc:1350:52:   Like DF_LR, but include tracking subreg liveness.█Currently used to provide
 
> 
> 
> &gt;These names seem a bit too short for global variables.&nbsp; Perhaps tuck
> &gt;them in a namespace?
> &gt;
> &gt;Also, since these must remain empty, shouldn't they be declared as const?
> &gt;
> &gt;namespace df {
> &gt;&nbsp;&nbsp; const bitmap_head empty_bitmap;
> &gt;&nbsp;&nbsp; const subregs_live empty_live;
> &gt;}
> 
> 
> 
> May be better if "namespace df" contains all DF related code? as a minor modification, I add a prefix "df_" to the variables.
> Meanwhile, const seems inapropriate here, since it's returned as normal pointer rather than const pointer in some funtions, 
> 
> change to const would break this return value type check, and a const_cast would make the const meanlingless.
> 
> 
> more details see in the patch
 
Thanks for considering my suggestion.
 
Regards,
Dimitar
> 
> 
> regards
> Shuo
> 
> &nbsp;
> &nbsp;
 

  reply	other threads:[~2024-05-08 22:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-24 10:05 [PATCH V2 0/4] Add DF_LIVE_SUBREG data and apply to IRA and LRA Lehua Ding
2024-04-24 10:05 ` [PATCH 1/4] df: Add -ftrack-subreg-liveness option Lehua Ding
2024-04-24 10:05 ` [PATCH 2/4] df: Add DF_LIVE_SUBREG problem Lehua Ding
2024-04-25 20:56   ` Dimitar Dimitrov
2024-05-08  2:46     ` Lehua Ding
2024-05-08  3:34     ` 陈硕
2024-05-08 15:57       ` Dimitar Dimitrov
2024-05-08 22:54         ` 钟居哲 [this message]
2024-04-24 10:05 ` [PATCH 3/4] ira: Apply DF_LIVE_SUBREG data Lehua Ding
2024-04-24 10:05 ` [PATCH 4/4] lra: " Lehua Ding

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=152D7D265CFEB15B+2024050906545079873616@rivai.ai \
    --to=juzhe.zhong@rivai.ai \
    --cc=dimitar@dinux.eu \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jin.xia@rivai.ai \
    --cc=lehua.ding@rivai.ai \
    --cc=richard.sandiford@arm.com \
    --cc=shuo.chen@rivai.ai \
    --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).