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

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
This commit is contained in:
Daniel Berlin 2004-06-13 22:52:34 +00:00 committed by Daniel Berlin
parent a40de696ac
commit 3bce843ee3
2 changed files with 10 additions and 0 deletions

View 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

View 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);