diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-26 15:51:16 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-26 15:51:16 +0000 |
commit | 64919a8617d5e94790f6464cc8c2bb76edcc5431 (patch) | |
tree | 74a18db2579cf265a9008e69ab843a977ffc4bf7 /gcc/tree-ssa-sccvn.c | |
parent | 6114783d1660d92f97953374132b3c54a2b9595a (diff) | |
download | gcc-64919a8617d5e94790f6464cc8c2bb76edcc5431.tar.gz |
2008-05-26 Richard Guenther <rguenther@suse.de>
* tree-ssa-sccvn.c (expr_has_constants): Declare.
(visit_reference_op_load): Initialize VN_INFO->has_constants
properly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135943 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r-- | gcc/tree-ssa-sccvn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 86777c784f0..c4c13f96ded 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -1139,8 +1139,8 @@ defs_to_varying (tree stmt) return changed; } -static tree -try_to_simplify (tree stmt, tree rhs); +static bool expr_has_constants (tree expr); +static tree try_to_simplify (tree stmt, tree rhs); /* Visit a copy between LHS and RHS, return true if the value number changed. */ @@ -1245,6 +1245,7 @@ visit_reference_op_load (tree lhs, tree op, tree stmt) /* Initialize value-number information properly. */ VN_INFO_GET (result)->valnum = result; VN_INFO (result)->expr = val; + VN_INFO (result)->has_constants = expr_has_constants (val); VN_INFO (result)->needs_insertion = true; /* As all "inserted" statements are singleton SCCs, insert to the valid table. This is strictly needed to |