2010-07-4 Richard Guenther <rguenther@suse.de>
authorRichard Guenther <rguenther@suse.de>
Sun, 4 Jul 2010 11:38:01 +0000 (11:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 4 Jul 2010 11:38:01 +0000 (11:38 +0000)
* tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.

From-SVN: r161799

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

index fb5486576c046303afd056ddf265ffac436adf94..b7b6b00ebccdb88fbf79622b5f680277361c966f 100644 (file)
@@ -1,3 +1,7 @@
+2010-07-04  Richard Guenther  <rguenther@suse.de>
+
+       * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
+
 2010-07-04  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/44656
index cca1941f7b35b29cad9d7f7abbf59caf0b7c162d..b121309a12441e904505c885c5dfe72f632bdf4d 100644 (file)
@@ -1218,12 +1218,12 @@ vn_reference_lookup_3 (ao_ref *ref, tree vuse, void *vr_)
       tree lhs = gimple_assign_lhs (def_stmt);
       ao_ref ref1;
       VEC (vn_reference_op_s, heap) *operands = NULL;
-      bool res;
+      bool res = true;
       copy_reference_ops_from_ref (lhs, &operands);
       operands = valueize_refs (operands);
-      ao_ref_init_from_vn_reference (&ref1, get_alias_set (lhs),
-                                    TREE_TYPE (lhs), operands);
-      res = refs_may_alias_p_1 (ref, &ref1, true);
+      if (ao_ref_init_from_vn_reference (&ref1, get_alias_set (lhs),
+                                        TREE_TYPE (lhs), operands))
+       res = refs_may_alias_p_1 (ref, &ref1, true);
       VEC_free (vn_reference_op_s, heap, operands);
       if (!res)
        return NULL;