public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r9-9538] Add missing vn_reference_t::punned initialization
@ 2021-05-18 7:05 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-05-18 7:05 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:f5f932214bf73bbe3334d67a07c632e4fca351f4
commit r9-9538-gf5f932214bf73bbe3334d67a07c632e4fca351f4
Author: Martin Liska <mliska@suse.cz>
Date: Thu Aug 13 13:05:12 2020 +0200
Add missing vn_reference_t::punned initialization
gcc/ChangeLog:
PR tree-optimization/96597
* tree-ssa-sccvn.c (vn_reference_lookup_call): Add missing
initialization of ::punned.
(vn_reference_insert): Use consistently false instead of 0.
(vn_reference_insert_pieces): Likewise.
Diff:
---
gcc/tree-ssa-sccvn.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index 5c1efadacc2..066a0559b71 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -2791,6 +2791,7 @@ vn_reference_lookup_call (gcall *call, vn_reference_t *vnresult,
vr->vuse = vuse ? SSA_VAL (vuse) : NULL_TREE;
vr->operands = valueize_shared_reference_ops_from_call (call);
vr->type = gimple_expr_type (call);
+ vr->punned = false;
vr->set = 0;
vr->hashcode = vn_reference_compute_hash (vr);
vn_reference_lookup_1 (vr, vnresult);
@@ -2813,7 +2814,7 @@ vn_reference_insert (tree op, tree result, tree vuse, tree vdef)
vr1->vuse = vuse_ssa_val (vuse);
vr1->operands = valueize_shared_reference_ops_from_ref (op, &tem).copy ();
vr1->type = TREE_TYPE (op);
- vr1->punned = 0;
+ vr1->punned = false;
vr1->set = get_alias_set (op);
vr1->hashcode = vn_reference_compute_hash (vr1);
vr1->result = TREE_CODE (result) == SSA_NAME ? SSA_VAL (result) : result;
@@ -2869,7 +2870,7 @@ vn_reference_insert_pieces (tree vuse, alias_set_type set, tree type,
vr1->vuse = vuse_ssa_val (vuse);
vr1->operands = valueize_refs (operands);
vr1->type = type;
- vr1->punned = 0;
+ vr1->punned = false;
vr1->set = set;
vr1->hashcode = vn_reference_compute_hash (vr1);
if (result && TREE_CODE (result) == SSA_NAME)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-18 7:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 7:05 [gcc r9-9538] Add missing vn_reference_t::punned initialization 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).