diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-20 23:14:35 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-20 23:14:35 +0000 |
commit | 71d9af8131054750961e213932009b42be6c991a (patch) | |
tree | 1118cd00df41aae6eb9b333544d174fc12d3fc3f /gcc/tree-inline.c | |
parent | 5b54eabfce785dcdc1ce64ce9e5691da023f5d8f (diff) | |
download | gcc-71d9af8131054750961e213932009b42be6c991a.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133403 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 54cacb5a79b..216e3b4664d 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; } |