tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
authorRichard Biener <rguenther@suse.de>
Fri, 10 May 2019 12:01:04 +0000 (12:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 10 May 2019 12:01:04 +0000 (12:01 +0000)
2019-05-10  Richard Biener  <rguenther@suse.de>

* tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
(do_rpo_vn): Initialize next_value_id.

From-SVN: r271061

gcc/ChangeLog
gcc/tree-ssa-sccvn.c

index af3b6a3e89a492acf8a7778b901e55c60227dbc7..cf270086b5fb8a80724e5d6a35079dad4a281843 100644 (file)
@@ -1,3 +1,8 @@
+2019-05-10  Richard Biener  <rguenther@suse.de>
+
+       * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
+       (do_rpo_vn): Initialize next_value_id.
+
 2019-05-10  Martin Liska  <mliska@suse.cz>
 
        * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
index 219fb9ea175a55302fda3f02bf4783355555ab8d..c3ca49bd8678d338a355ccc7bc1b6bd3dec4b2d5 100644 (file)
@@ -4059,6 +4059,7 @@ visit_reference_op_call (tree lhs, gcall *stmt)
       vr2->hashcode = vr1.hashcode;
       vr2->result = lhs;
       vr2->result_vdef = vdef_val;
+      vr2->value_id = 0;
       slot = valid_info->references->find_slot_with_hash (vr2, vr2->hashcode,
                                                          INSERT);
       gcc_assert (!*slot);
@@ -6467,6 +6468,7 @@ do_rpo_vn (function *fn, edge entry, bitmap exit_bbs,
   unsigned region_size = (((unsigned HOST_WIDE_INT)n * num_ssa_names)
                          / (n_basic_blocks_for_fn (fn) - NUM_FIXED_BLOCKS));
   VN_TOP = create_tmp_var_raw (void_type_node, "vn_top");
+  next_value_id = 1;
 
   vn_ssa_aux_hash = new hash_table <vn_ssa_aux_hasher> (region_size * 2);
   gcc_obstack_init (&vn_ssa_aux_obstack);