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 8ec2db5..54fe05f 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 a1f33ad..b0d42ff 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);