aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2008-03-20 23:14:35 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2008-03-20 23:14:35 +0000
commitad6003f260068a46bd378c5601604bc1cf077e74 (patch)
tree1118cd00df41aae6eb9b333544d174fc12d3fc3f /gcc/tree-inline.c
parent2acdc1fb2d1f9b72672256ba3aa5fd74d1436223 (diff)
downloadgcc-ad6003f260068a46bd378c5601604bc1cf077e74.zip
gcc-ad6003f260068a46bd378c5601604bc1cf077e74.tar.gz
gcc-ad6003f260068a46bd378c5601604bc1cf077e74.tar.bz2
tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop): Use is_gimple_min_invariant instead of TREE_INVARIANT.
2008-03-21 Richard Guenther <rguenther@suse.de> * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop): Use is_gimple_min_invariant instead of TREE_INVARIANT. * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise. * tree-ssa-dom.c (record_equality): Likewise. * tree-inline.c (copy_body_r): Likewise. * tree-ssa-pre.c (make_values_for_stmt): Remove test for TREE_INVARIANT. From-SVN: r133403
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 54cacb5..216e3b4 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -773,7 +773,7 @@ copy_body_r (tree *tp, int *walk_subtrees, void *data)
and friends are up-to-date. */
else if (TREE_CODE (*tp) == ADDR_EXPR)
{
- int invariant = TREE_INVARIANT (*tp);
+ int invariant = is_gimple_min_invariant (*tp);
walk_tree (&TREE_OPERAND (*tp, 0), copy_body_r, id, NULL);
/* Handle the case where we substituted an INDIRECT_REF
into the operand of the ADDR_EXPR. */
@@ -783,7 +783,7 @@ copy_body_r (tree *tp, int *walk_subtrees, void *data)
recompute_tree_invariant_for_addr_expr (*tp);
/* If this used to be invariant, but is not any longer,
then regimplification is probably needed. */
- if (invariant && !TREE_INVARIANT (*tp))
+ if (invariant && !is_gimple_min_invariant (*tp))
id->regimplify = true;
*walk_subtrees = 0;
}