From: Daniel Berlin Date: Sun, 13 Jun 2004 22:52:34 +0000 (+0000) Subject: tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things are available everywher... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3bce843ee30206917ccdfbf283c73e19a2ce633c;p=gcc.git tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things are available everywhere too. 2004-06-13 Daniel Berlin * tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things are available everywhere too. From-SVN: r83069 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ec2db59619..54fe05f4f02 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-13 Daniel Berlin + + * tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things + are available everywhere too. + 2004-06-13 Andrew Pinski * fold-const.c (fold_checksum_tree ): Only diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index a1f33ad36f3..b0d42ff05f3 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -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);