From 3bce843ee30206917ccdfbf283c73e19a2ce633c Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Sun, 13 Jun 2004 22:52:34 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-pre.c | 5 +++++ 2 files changed, 10 insertions(+) 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); -- 2.30.2