diff options
author | Richard Guenther <rguenther@suse.de> | 2008-03-20 23:14:35 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-03-20 23:14:35 +0000 |
commit | ad6003f260068a46bd378c5601604bc1cf077e74 (patch) | |
tree | 1118cd00df41aae6eb9b333544d174fc12d3fc3f /gcc/tree-ssa-dom.c | |
parent | 2acdc1fb2d1f9b72672256ba3aa5fd74d1436223 (diff) | |
download | gcc-ad6003f260068a46bd378c5601604bc1cf077e74.tar.gz |
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-ssa-dom.c')
-rw-r--r-- | gcc/tree-ssa-dom.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 4d95261bc73..64ff4efca85 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -1146,11 +1146,12 @@ record_equality (tree x, tree y) (by depth), then use that. Otherwise it doesn't matter which value we choose, just so long as we canonicalize on one value. */ - if (TREE_INVARIANT (y)) + if (is_gimple_min_invariant (y)) ; - else if (TREE_INVARIANT (x) || (loop_depth_of_name (x) <= loop_depth_of_name (y))) + else if (is_gimple_min_invariant (x) + || (loop_depth_of_name (x) <= loop_depth_of_name (y))) prev_x = x, x = y, y = prev_x, prev_x = prev_y; - else if (prev_x && TREE_INVARIANT (prev_x)) + else if (prev_x && is_gimple_min_invariant (prev_x)) x = y, y = prev_x, prev_x = prev_y; else if (prev_y && TREE_CODE (prev_y) != VALUE_HANDLE) y = prev_y; |