public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix value uninitialization in vn_reference_insert_pieces [PR102400]
@ 2021-09-23  1:23 Feng Xue OS
  2021-09-23  8:35 ` Richard Biener
  0 siblings, 1 reply; 2+ messages in thread
From: Feng Xue OS @ 2021-09-23  1:23 UTC (permalink / raw)
  To: gcc-patches

Bootstrapped/regtested on x86_64-linux.

Thanks,
Feng
---
2021-09-23  Feng Xue  <fxue@os.amperecomputing.com>

gcc/ChangeLog
	PR tree-optimization/102400
        * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
	result_vdef to zero value.
---
 gcc/tree-ssa-sccvn.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index a901f51a025..e8b1c39184d 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -3811,6 +3811,7 @@ vn_reference_insert_pieces (tree vuse, alias_set_type set,
   if (result && TREE_CODE (result) == SSA_NAME)
     result = SSA_VAL (result);
   vr1->result = result;
+  vr1->result_vdef = NULL_TREE;
 
   slot = valid_info->references->find_slot_with_hash (vr1, vr1->hashcode,
 						      INSERT);
-- 
2.17.1


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

* Re: [PATCH] Fix value uninitialization in vn_reference_insert_pieces [PR102400]
  2021-09-23  1:23 [PATCH] Fix value uninitialization in vn_reference_insert_pieces [PR102400] Feng Xue OS
@ 2021-09-23  8:35 ` Richard Biener
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2021-09-23  8:35 UTC (permalink / raw)
  To: Feng Xue OS; +Cc: gcc-patches

On Thu, Sep 23, 2021 at 3:24 AM Feng Xue OS via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> Bootstrapped/regtested on x86_64-linux.

OK for all affected branches.

Thanks,
Richard.

> Thanks,
> Feng
> ---
> 2021-09-23  Feng Xue  <fxue@os.amperecomputing.com>
>
> gcc/ChangeLog
>         PR tree-optimization/102400
>         * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
>         result_vdef to zero value.
> ---
>  gcc/tree-ssa-sccvn.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
> index a901f51a025..e8b1c39184d 100644
> --- a/gcc/tree-ssa-sccvn.c
> +++ b/gcc/tree-ssa-sccvn.c
> @@ -3811,6 +3811,7 @@ vn_reference_insert_pieces (tree vuse, alias_set_type set,
>    if (result && TREE_CODE (result) == SSA_NAME)
>      result = SSA_VAL (result);
>    vr1->result = result;
> +  vr1->result_vdef = NULL_TREE;
>
>    slot = valid_info->references->find_slot_with_hash (vr1, vr1->hashcode,
>                                                       INSERT);
> --
> 2.17.1
>

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

end of thread, other threads:[~2021-09-23  8:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23  1:23 [PATCH] Fix value uninitialization in vn_reference_insert_pieces [PR102400] Feng Xue OS
2021-09-23  8:35 ` Richard Biener

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