tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things are available everywher...
authorDaniel Berlin <dberlin@dberlin.org>
Sun, 13 Jun 2004 22:52:34 +0000 (22:52 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Sun, 13 Jun 2004 22:52:34 +0000 (22:52 +0000)
2004-06-13  Daniel Berlin  <dberlin@dberlin.org>

* tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things
are available everywhere too.

From-SVN: r83069

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

index 8ec2db59619b632d710757b2f650b5ea78a4fd0f..54fe05f4f02e6b62030edee61f6387a4bbd1fae7 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-13  Daniel Berlin  <dberlin@dberlin.org>
+
+       * tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things
+       are available everywhere too.
+
 2004-06-13  Andrew Pinski  <pinskia@physics.uc.edu>
 
        * fold-const.c (fold_checksum_tree <case 't'>): Only
index a1f33ad36f374b6cd3022a5a62bb16dc5433f5a2..b0d42ff05f30d5d89a01eff110da6f2a92f80d32 100644 (file)
@@ -468,6 +468,11 @@ add_to_value (tree v, tree e)
       TREE_CONSTANT (v) = true;
       TREE_CHAIN (v) = e;
     }
+  else if (is_gimple_min_invariant (e))
+    {
+      TREE_CONSTANT (v) = true;
+      TREE_CHAIN (v) = e;
+    }
 #if DEBUG_VALUE_EXPRESSIONS
   if (va->expr_set == NULL)
     va->expr_set = set_new (false);