diff options
author | Richard Guenther <rguenther@suse.de> | 2008-04-15 13:28:08 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-04-15 13:28:08 +0000 |
commit | 649caaad399d6f4865a4d0015a1ac76c3cce7eb0 (patch) | |
tree | 9098d5ac54a9f0a83f6c1809c9d7cb33b7f481de /gcc/tree-vn.c | |
parent | 462c31ef75b495fd95f18a91864c471d2cb76494 (diff) | |
download | gcc-649caaad399d6f4865a4d0015a1ac76c3cce7eb0.zip gcc-649caaad399d6f4865a4d0015a1ac76c3cce7eb0.tar.gz gcc-649caaad399d6f4865a4d0015a1ac76c3cce7eb0.tar.bz2 |
tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
2008-04-15 Richard Guenther <rguenther@suse.de>
* tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
* tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
(visit_reference_op_load): Do walk vuse-vdef chains on
vn_reference_lookup.
(visit_reference_op_store): But do not here.
* tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
vn_reference_lookup.
(vn_lookup_with_vuses): But do so here.
From-SVN: r134314
Diffstat (limited to 'gcc/tree-vn.c')
-rw-r--r-- | gcc/tree-vn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-vn.c b/gcc/tree-vn.c index 2122a7e..c09dfb7 100644 --- a/gcc/tree-vn.c +++ b/gcc/tree-vn.c @@ -255,7 +255,7 @@ vn_lookup (tree expr) /* In the case of array-refs of constants, for example, we can end up with no vuses. */ case tcc_reference: - return vn_reference_lookup (expr, NULL); + return vn_reference_lookup (expr, NULL, false); break; /* It is possible to have CALL_EXPR with no vuses for things like "cos", and these will fall into vn_lookup. */ @@ -264,7 +264,7 @@ vn_lookup (tree expr) case tcc_expression: case tcc_declaration: if (TREE_CODE (expr) == CALL_EXPR || DECL_P (expr)) - return vn_reference_lookup (expr, NULL); + return vn_reference_lookup (expr, NULL, false); else if (TREE_CODE (expr) == SSA_NAME) return SSA_NAME_VALUE (expr); else if (TREE_CODE (expr) == ADDR_EXPR) @@ -308,7 +308,7 @@ vn_lookup_with_vuses (tree expr, VEC (tree, gc) *vuses) if (is_gimple_min_invariant (expr) || TREE_CODE (expr) == FIELD_DECL) return expr; - return vn_reference_lookup (expr, vuses); + return vn_reference_lookup (expr, vuses, true); } static tree |