public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] RISC-V: Fix incorrect annotation
@ 2022-12-19 23:13 juzhe.zhong
  2022-12-20  0:28 ` Jeff Law
       [not found] ` <36D1C05330B9612D+065D340F-26F5-4844-8ACE-EA8091A41E6A@rivai.ai>
  0 siblings, 2 replies; 8+ messages in thread
From: juzhe.zhong @ 2022-12-19 23:13 UTC (permalink / raw)
  To: gcc-patches; +Cc: kito.cheng, palmer, jeffreyalaw, Ju-Zhe Zhong

From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>

gcc/ChangeLog:

        * config/riscv/riscv-vsetvl.cc (anticipatable_occurrence_p): Fix incorrect annotations.
        (available_occurrence_p): Ditto.
        (backward_propagate_worthwhile_p): Ditto.
        (can_backward_propagate_p): Ditto.

---
 gcc/config/riscv/riscv-vsetvl.cc | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc
index 0c2ff630e96..72f1e4059ab 100644
--- a/gcc/config/riscv/riscv-vsetvl.cc
+++ b/gcc/config/riscv/riscv-vsetvl.cc
@@ -186,7 +186,7 @@ anticipatable_occurrence_p (const insn_info *insn, const vector_insn_info dem)
   /* The only possible operand we care of VSETVL is AVL.  */
   if (dem.has_avl_reg ())
     {
-      /* The operands shoule not be modified in the basic block prior
+      /* The operands should not be modified in the basic block prior
 	 to the occurrence.  */
       if (!vlmax_avl_p (dem.get_avl ()))
 	{
@@ -223,7 +223,7 @@ available_occurrence_p (const insn_info *insn, const vector_insn_info dem)
   /* The only possible operand we care of VSETVL is AVL.  */
   if (dem.has_avl_reg ())
     {
-      /* The operands shoule not be modified in the basic block prior
+      /* The operands should not be modified in the basic block prior
 	 to the occurrence.
 	 e.g.
 	    bb:
@@ -284,7 +284,7 @@ backward_propagate_worthwhile_p (const basic_block cfg_bb,
 			     |_________|
 			  reaching_out
 	  Header is incompatible with reaching_out and the block is loop itself,
-	  we don't backward propagete the local_dem since we can't avoid emit
+	  we don't backward propagate the local_dem since we can't avoid emit
 	  vsetvl for the local_dem.  */
       edge e;
       edge_iterator ei;
@@ -334,10 +334,10 @@ can_backward_propagate_p (const function_info *ssa, const basic_block cfg_bb,
   insn_info *insn = prop.get_insn ();
 
   /* TODO: We don't backward propagate the explict VSETVL here
-     since we will change vsetvl and vsetvlmax intrinsiscs into
-     no side effects which can be optimized into optimzal location
-     by GCC internal PASSes. We only need to support these backward
-     propagation if vsetvl instrinsics have side effects.  */
+     since we will change vsetvl and vsetvlmax intrinsics into
+     no side effects which can be optimized into optimal location
+     by GCC internal passes. We only need to support these backward
+     propagation if vsetvl intrinsics have side effects.  */
   if (vsetvl_insn_p (insn->rtl ()))
     return false;
 
@@ -369,7 +369,7 @@ can_backward_propagate_p (const function_info *ssa, const basic_block cfg_bb,
   def_info *def = find_access (insn->uses (), REGNO (reg))->def ();
 
   /* If the definition is in the current block, we can't propagate it
-     acrocss blocks.  */
+     across blocks.  */
   if (def->bb ()->cfg_bb ()->index == insn->bb ()->cfg_bb ()->index)
     {
       set_info *set = safe_dyn_cast<set_info *> (def);
@@ -406,7 +406,7 @@ can_backward_propagate_p (const function_info *ssa, const basic_block cfg_bb,
   if (def->bb ()->cfg_bb ()->index == cfg_bb->index)
     return true;
 
-  /* Make sure we don't backward propagete the VL/VTYPE info over the
+  /* Make sure we don't backward propagate the VL/VTYPE info over the
      definition blocks.  */
   bool visited_p = false;
   for (const bb_info *bb : ssa->reverse_bbs ())
-- 
2.36.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] RISC-V: Fix incorrect annotation
  2022-12-19 23:13 [PATCH] RISC-V: Fix incorrect annotation juzhe.zhong
@ 2022-12-20  0:28 ` Jeff Law
       [not found] ` <36D1C05330B9612D+065D340F-26F5-4844-8ACE-EA8091A41E6A@rivai.ai>
  1 sibling, 0 replies; 8+ messages in thread
From: Jeff Law @ 2022-12-20  0:28 UTC (permalink / raw)
  To: juzhe.zhong, gcc-patches; +Cc: kito.cheng, palmer



On 12/19/22 16:13, juzhe.zhong@rivai.ai wrote:
> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
> 
> gcc/ChangeLog:
> 
>          * config/riscv/riscv-vsetvl.cc (anticipatable_occurrence_p): Fix incorrect annotations.
>          (available_occurrence_p): Ditto.
>          (backward_propagate_worthwhile_p): Ditto.
>          (can_backward_propagate_p): Ditto.
OK.  And more generally, fixes like this don't need review.  Consider 
them pre-approved for the future.


jeff

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] RISC-V: Fix incorrect annotation
       [not found] ` <36D1C05330B9612D+065D340F-26F5-4844-8ACE-EA8091A41E6A@rivai.ai>
@ 2022-12-20 16:02   ` Jeff Law
  2022-12-20 16:06     ` Palmer Dabbelt
  2022-12-20 23:33     ` 钟居哲
  0 siblings, 2 replies; 8+ messages in thread
From: Jeff Law @ 2022-12-20 16:02 UTC (permalink / raw)
  To: juzhe.zhong; +Cc: gcc-patches, kito.cheng, palmer



On 12/19/22 17:38, juzhe.zhong wrote:
> Would you mind merging it for me? I can‘t merge code.
Do you mean you do not have write access to the repository?  If so, that 
can be easily fixed.

https://sourceware.org/cgi-bin/pdw/ps_form.cgi

List me as your sponsor.

jeff

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] RISC-V: Fix incorrect annotation
  2022-12-20 16:02   ` Jeff Law
@ 2022-12-20 16:06     ` Palmer Dabbelt
  2022-12-20 16:15       ` Jeff Law
  2022-12-20 23:33     ` 钟居哲
  1 sibling, 1 reply; 8+ messages in thread
From: Palmer Dabbelt @ 2022-12-20 16:06 UTC (permalink / raw)
  To: jeffreyalaw; +Cc: juzhe.zhong, gcc-patches, Kito Cheng

On Tue, 20 Dec 2022 08:02:56 PST (-0800), jeffreyalaw@gmail.com wrote:
>
>
> On 12/19/22 17:38, juzhe.zhong wrote:
>> Would you mind merging it for me? I can‘t merge code.
> Do you mean you do not have write access to the repository?  If so, that
> can be easily fixed.
>
> https://sourceware.org/cgi-bin/pdw/ps_form.cgi
>
> List me as your sponsor.

Do we also need to add him to the write after approval section in 
MAINTAINERS?  We were trying to remember how to do this on IRC last 
night...

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] RISC-V: Fix incorrect annotation
  2022-12-20 16:06     ` Palmer Dabbelt
@ 2022-12-20 16:15       ` Jeff Law
  0 siblings, 0 replies; 8+ messages in thread
From: Jeff Law @ 2022-12-20 16:15 UTC (permalink / raw)
  To: Palmer Dabbelt; +Cc: juzhe.zhong, gcc-patches, Kito Cheng



On 12/20/22 09:06, Palmer Dabbelt wrote:
> On Tue, 20 Dec 2022 08:02:56 PST (-0800), jeffreyalaw@gmail.com wrote:
>>
>>
>> On 12/19/22 17:38, juzhe.zhong wrote:
>>> Would you mind merging it for me? I can‘t merge code.
>> Do you mean you do not have write access to the repository?  If so, that
>> can be easily fixed.
>>
>> https://sourceware.org/cgi-bin/pdw/ps_form.cgi
>>
>> List me as your sponsor.
> 
> Do we also need to add him to the write after approval section in 
> MAINTAINERS?  We were trying to remember how to do this on IRC last 
> night...
That's the first TODO once his write access is set up.

Jeff

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Re: [PATCH] RISC-V: Fix incorrect annotation
  2022-12-20 16:02   ` Jeff Law
  2022-12-20 16:06     ` Palmer Dabbelt
@ 2022-12-20 23:33     ` 钟居哲
  2022-12-20 23:38       ` Palmer Dabbelt
  1 sibling, 1 reply; 8+ messages in thread
From: 钟居哲 @ 2022-12-20 23:33 UTC (permalink / raw)
  To: Jeff Law; +Cc: gcc-patches, kito.cheng, palmer

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

Thanks. I received an email from sourceware:
"You should now have write access to the source control repository for your project."
It seems that I can merge codes? However, I still don't know how to merge codes.


juzhe.zhong@rivai.ai
 
From: Jeff Law
Date: 2022-12-21 00:02
To: juzhe.zhong
CC: gcc-patches@gcc.gnu.org; kito.cheng@gmail.com; palmer@dabbelt.com
Subject: Re: [PATCH] RISC-V: Fix incorrect annotation
 
 
On 12/19/22 17:38, juzhe.zhong wrote:
> Would you mind merging it for me? I can‘t merge code.
Do you mean you do not have write access to the repository?  If so, that 
can be easily fixed.
 
https://sourceware.org/cgi-bin/pdw/ps_form.cgi
 
List me as your sponsor.
 
jeff
 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Re: [PATCH] RISC-V: Fix incorrect annotation
  2022-12-20 23:33     ` 钟居哲
@ 2022-12-20 23:38       ` Palmer Dabbelt
  2022-12-23  5:47         ` Kito Cheng
  0 siblings, 1 reply; 8+ messages in thread
From: Palmer Dabbelt @ 2022-12-20 23:38 UTC (permalink / raw)
  To: juzhe.zhong; +Cc: jeffreyalaw, gcc-patches, Kito Cheng

On Tue, 20 Dec 2022 15:33:11 PST (-0800), juzhe.zhong@rivai.ai wrote:
> Thanks. I received an email from sourceware:
> "You should now have write access to the source control repository for your project."
> It seems that I can merge codes? However, I still don't know how to merge codes.

You should have a sourceware account, along with an associated private 
key.  With those you should be able to get push access via 
https://gcc.gnu.org/gitwrite.html

> 
> 
> juzhe.zhong@rivai.ai
>  
> From: Jeff Law
> Date: 2022-12-21 00:02
> To: juzhe.zhong
> CC: gcc-patches@gcc.gnu.org; kito.cheng@gmail.com; palmer@dabbelt.com
> Subject: Re: [PATCH] RISC-V: Fix incorrect annotation
>  
>  
> On 12/19/22 17:38, juzhe.zhong wrote:
>> Would you mind merging it for me? I can‘t merge code.
> Do you mean you do not have write access to the repository?  If so, that 
> can be easily fixed.
>  
> https://sourceware.org/cgi-bin/pdw/ps_form.cgi
>  
> List me as your sponsor.
>  
> jeff
>  

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Re: [PATCH] RISC-V: Fix incorrect annotation
  2022-12-20 23:38       ` Palmer Dabbelt
@ 2022-12-23  5:47         ` Kito Cheng
  0 siblings, 0 replies; 8+ messages in thread
From: Kito Cheng @ 2022-12-23  5:47 UTC (permalink / raw)
  To: Palmer Dabbelt; +Cc: juzhe.zhong, jeffreyalaw, gcc-patches

Committed, thanks :)

Ju-Zhe has not figured out how to commit to his environment yet, I am
helping him to set up.

On Wed, Dec 21, 2022 at 7:38 AM Palmer Dabbelt <palmer@dabbelt.com> wrote:
>
> On Tue, 20 Dec 2022 15:33:11 PST (-0800), juzhe.zhong@rivai.ai wrote:
> > Thanks. I received an email from sourceware:
> > "You should now have write access to the source control repository for your project."
> > It seems that I can merge codes? However, I still don't know how to merge codes.
>
> You should have a sourceware account, along with an associated private
> key.  With those you should be able to get push access via
> https://gcc.gnu.org/gitwrite.html
>
> >
> >
> > juzhe.zhong@rivai.ai
> >
> > From: Jeff Law
> > Date: 2022-12-21 00:02
> > To: juzhe.zhong
> > CC: gcc-patches@gcc.gnu.org; kito.cheng@gmail.com; palmer@dabbelt.com
> > Subject: Re: [PATCH] RISC-V: Fix incorrect annotation
> >
> >
> > On 12/19/22 17:38, juzhe.zhong wrote:
> >> Would you mind merging it for me? I can‘t merge code.
> > Do you mean you do not have write access to the repository?  If so, that
> > can be easily fixed.
> >
> > https://sourceware.org/cgi-bin/pdw/ps_form.cgi
> >
> > List me as your sponsor.
> >
> > jeff
> >

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-12-23  5:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19 23:13 [PATCH] RISC-V: Fix incorrect annotation juzhe.zhong
2022-12-20  0:28 ` Jeff Law
     [not found] ` <36D1C05330B9612D+065D340F-26F5-4844-8ACE-EA8091A41E6A@rivai.ai>
2022-12-20 16:02   ` Jeff Law
2022-12-20 16:06     ` Palmer Dabbelt
2022-12-20 16:15       ` Jeff Law
2022-12-20 23:33     ` 钟居哲
2022-12-20 23:38       ` Palmer Dabbelt
2022-12-23  5:47         ` Kito Cheng

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).