public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] doc: explicitly say 'lifetime' for DCE
@ 2023-11-02  9:02 Sam James
  2023-11-02 10:18 ` Richard Biener
  0 siblings, 1 reply; 5+ messages in thread
From: Sam James @ 2023-11-02  9:02 UTC (permalink / raw)
  To: gcc-patches; +Cc: Sam James

Say 'memory lifetime' rather than 'memory life' as lifetime is the more
standard term nowadays (indeed we have e.g. -fno-lifetime-dse).

It's also easier to grep for if someone is looking for the documentation on
where we do that.

gcc/ChangeLog:
    * doc/passes.texi (Dead code elimination): Explicitly say 'lifetime'
    as this has become the standard term for what we're doing here.

Signed-off-by: Sam James <sam@gentoo.org>
---
 gcc/doc/passes.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/doc/passes.texi b/gcc/doc/passes.texi
index eb2bb6062834..470ac498a132 100644
--- a/gcc/doc/passes.texi
+++ b/gcc/doc/passes.texi
@@ -543,7 +543,7 @@ and is defined by @code{pass_early_warn_uninitialized} and
 @item Dead code elimination
 
 This pass scans the function for statements without side effects whose
-result is unused.  It does not do memory life analysis, so any value
+result is unused.  It does not do memory lifetime analysis, so any value
 that is stored in memory is considered used.  The pass is run multiple
 times throughout the optimization process.  It is located in
 @file{tree-ssa-dce.cc} and is described by @code{pass_dce}.
-- 
2.42.0


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

* Re: [PATCH] doc: explicitly say 'lifetime' for DCE
  2023-11-02  9:02 [PATCH] doc: explicitly say 'lifetime' for DCE Sam James
@ 2023-11-02 10:18 ` Richard Biener
  2023-11-02 10:25   ` Sam James
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Biener @ 2023-11-02 10:18 UTC (permalink / raw)
  To: Sam James; +Cc: gcc-patches

On Thu, Nov 2, 2023 at 10:03 AM Sam James <sam@gentoo.org> wrote:
>
> Say 'memory lifetime' rather than 'memory life' as lifetime is the more
> standard term nowadays (indeed we have e.g. -fno-lifetime-dse).
>
> It's also easier to grep for if someone is looking for the documentation on
> where we do that.

OK

> gcc/ChangeLog:
>     * doc/passes.texi (Dead code elimination): Explicitly say 'lifetime'
>     as this has become the standard term for what we're doing here.
>
> Signed-off-by: Sam James <sam@gentoo.org>
> ---
>  gcc/doc/passes.texi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/doc/passes.texi b/gcc/doc/passes.texi
> index eb2bb6062834..470ac498a132 100644
> --- a/gcc/doc/passes.texi
> +++ b/gcc/doc/passes.texi
> @@ -543,7 +543,7 @@ and is defined by @code{pass_early_warn_uninitialized} and
>  @item Dead code elimination
>
>  This pass scans the function for statements without side effects whose
> -result is unused.  It does not do memory life analysis, so any value
> +result is unused.  It does not do memory lifetime analysis, so any value
>  that is stored in memory is considered used.  The pass is run multiple
>  times throughout the optimization process.  It is located in
>  @file{tree-ssa-dce.cc} and is described by @code{pass_dce}.
> --
> 2.42.0
>

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

* Re: [PATCH] doc: explicitly say 'lifetime' for DCE
  2023-11-02 10:18 ` Richard Biener
@ 2023-11-02 10:25   ` Sam James
  2023-11-02 11:46     ` Richard Biener
  0 siblings, 1 reply; 5+ messages in thread
From: Sam James @ 2023-11-02 10:25 UTC (permalink / raw)
  To: Richard Biener; +Cc: Sam James, gcc-patches


Richard Biener <richard.guenther@gmail.com> writes:

> On Thu, Nov 2, 2023 at 10:03 AM Sam James <sam@gentoo.org> wrote:
>>
>> Say 'memory lifetime' rather than 'memory life' as lifetime is the more
>> standard term nowadays (indeed we have e.g. -fno-lifetime-dse).
>>
>> It's also easier to grep for if someone is looking for the documentation on
>> where we do that.
>
> OK

Could you push for me please? I have a sw account but no gcc access
(yet).

cheers

>
>> gcc/ChangeLog:
>>     * doc/passes.texi (Dead code elimination): Explicitly say 'lifetime'
>>     as this has become the standard term for what we're doing here.
>>
>> Signed-off-by: Sam James <sam@gentoo.org>
>> ---
>>  gcc/doc/passes.texi | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/gcc/doc/passes.texi b/gcc/doc/passes.texi
>> index eb2bb6062834..470ac498a132 100644
>> --- a/gcc/doc/passes.texi
>> +++ b/gcc/doc/passes.texi
>> @@ -543,7 +543,7 @@ and is defined by @code{pass_early_warn_uninitialized} and
>>  @item Dead code elimination
>>
>>  This pass scans the function for statements without side effects whose
>> -result is unused.  It does not do memory life analysis, so any value
>> +result is unused.  It does not do memory lifetime analysis, so any value
>>  that is stored in memory is considered used.  The pass is run multiple
>>  times throughout the optimization process.  It is located in
>>  @file{tree-ssa-dce.cc} and is described by @code{pass_dce}.
>> --
>> 2.42.0
>>


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

* Re: [PATCH] doc: explicitly say 'lifetime' for DCE
  2023-11-02 10:25   ` Sam James
@ 2023-11-02 11:46     ` Richard Biener
  2023-11-02 12:01       ` Sam James
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Biener @ 2023-11-02 11:46 UTC (permalink / raw)
  To: Sam James; +Cc: gcc-patches

On Thu, Nov 2, 2023 at 11:25 AM Sam James <sam@gentoo.org> wrote:
>
>
> Richard Biener <richard.guenther@gmail.com> writes:
>
> > On Thu, Nov 2, 2023 at 10:03 AM Sam James <sam@gentoo.org> wrote:
> >>
> >> Say 'memory lifetime' rather than 'memory life' as lifetime is the more
> >> standard term nowadays (indeed we have e.g. -fno-lifetime-dse).
> >>
> >> It's also easier to grep for if someone is looking for the documentation on
> >> where we do that.
> >
> > OK
>
> Could you push for me please? I have a sw account but no gcc access
> (yet).

Done after fixing ChangeLog format.

Richard.

> cheers
>
> >
> >> gcc/ChangeLog:
> >>     * doc/passes.texi (Dead code elimination): Explicitly say 'lifetime'
> >>     as this has become the standard term for what we're doing here.
> >>
> >> Signed-off-by: Sam James <sam@gentoo.org>
> >> ---
> >>  gcc/doc/passes.texi | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/gcc/doc/passes.texi b/gcc/doc/passes.texi
> >> index eb2bb6062834..470ac498a132 100644
> >> --- a/gcc/doc/passes.texi
> >> +++ b/gcc/doc/passes.texi
> >> @@ -543,7 +543,7 @@ and is defined by @code{pass_early_warn_uninitialized} and
> >>  @item Dead code elimination
> >>
> >>  This pass scans the function for statements without side effects whose
> >> -result is unused.  It does not do memory life analysis, so any value
> >> +result is unused.  It does not do memory lifetime analysis, so any value
> >>  that is stored in memory is considered used.  The pass is run multiple
> >>  times throughout the optimization process.  It is located in
> >>  @file{tree-ssa-dce.cc} and is described by @code{pass_dce}.
> >> --
> >> 2.42.0
> >>
>

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

* Re: [PATCH] doc: explicitly say 'lifetime' for DCE
  2023-11-02 11:46     ` Richard Biener
@ 2023-11-02 12:01       ` Sam James
  0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2023-11-02 12:01 UTC (permalink / raw)
  To: Richard Biener; +Cc: Sam James, gcc-patches


Richard Biener <richard.guenther@gmail.com> writes:

> On Thu, Nov 2, 2023 at 11:25 AM Sam James <sam@gentoo.org> wrote:
>>
>>
>> Richard Biener <richard.guenther@gmail.com> writes:
>>
>> > On Thu, Nov 2, 2023 at 10:03 AM Sam James <sam@gentoo.org> wrote:
>> >>
>> >> Say 'memory lifetime' rather than 'memory life' as lifetime is the more
>> >> standard term nowadays (indeed we have e.g. -fno-lifetime-dse).
>> >>
>> >> It's also easier to grep for if someone is looking for the documentation on
>> >> where we do that.
>> >
>> > OK
>>
>> Could you push for me please? I have a sw account but no gcc access
>> (yet).
>
> Done after fixing ChangeLog format.
>
> Richard.

Thanks!

>
>> cheers
>>
>> >
>> >> gcc/ChangeLog:
>> >>     * doc/passes.texi (Dead code elimination): Explicitly say 'lifetime'
>> >>     as this has become the standard term for what we're doing here.
>> >>
>> >> Signed-off-by: Sam James <sam@gentoo.org>
>> >> ---
>> >>  gcc/doc/passes.texi | 2 +-
>> >>  1 file changed, 1 insertion(+), 1 deletion(-)
>> >>
>> >> diff --git a/gcc/doc/passes.texi b/gcc/doc/passes.texi
>> >> index eb2bb6062834..470ac498a132 100644
>> >> --- a/gcc/doc/passes.texi
>> >> +++ b/gcc/doc/passes.texi
>> >> @@ -543,7 +543,7 @@ and is defined by @code{pass_early_warn_uninitialized} and
>> >>  @item Dead code elimination
>> >>
>> >>  This pass scans the function for statements without side effects whose
>> >> -result is unused.  It does not do memory life analysis, so any value
>> >> +result is unused.  It does not do memory lifetime analysis, so any value
>> >>  that is stored in memory is considered used.  The pass is run multiple
>> >>  times throughout the optimization process.  It is located in
>> >>  @file{tree-ssa-dce.cc} and is described by @code{pass_dce}.
>> >> --
>> >> 2.42.0
>> >>
>>


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

end of thread, other threads:[~2023-11-02 12:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-02  9:02 [PATCH] doc: explicitly say 'lifetime' for DCE Sam James
2023-11-02 10:18 ` Richard Biener
2023-11-02 10:25   ` Sam James
2023-11-02 11:46     ` Richard Biener
2023-11-02 12:01       ` Sam James

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