diff options
author | Jeff Law <law@redhat.com> | 2004-09-23 14:15:30 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2004-09-23 14:15:30 -0600 |
commit | 3aecd08b530f563539bf75c35e78ab81032f217c (patch) | |
tree | bcd7348fb84a0565837d2e0909dc0d5a2d44241e /gcc/tree-ssa-ccp.c | |
parent | 0c482362dd7c23fb89a324670636e8fee147774f (diff) | |
download | gcc-3aecd08b530f563539bf75c35e78ab81032f217c.zip gcc-3aecd08b530f563539bf75c35e78ab81032f217c.tar.gz gcc-3aecd08b530f563539bf75c35e78ab81032f217c.tar.bz2 |
tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
* tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
(substitute_and_fold): Likewise.
* tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
except invariants from SSA_NAME_VALUE.
(thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
and SET_SSA_NAME_EQUIV.
(restore_vars_to_original_value, record_const_or_copy): Likewise.
(record_equivalences_from_phis, record_const_or_copy_1): Likewise.
(record_equality, cprop_into_successor_phis): Likewise.
(record_equivalences_from_stmt, cprop_operand): Likewise.
(lookup_avail_expr): Likewise.
* tree-ssa-pre.c (fini_pre): Remove everything except invariants
from SSA_NAME_VALUE.
* tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
(struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
annotation from the VALUE_HANDLE field.
From-SVN: r87979
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 5fe1e1d..f268686 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -136,11 +136,11 @@ get_default_value (tree var) val.const_val = NULL_TREE; if (TREE_CODE (var) == SSA_NAME - && SSA_NAME_EQUIV (var) - && is_gimple_min_invariant (SSA_NAME_EQUIV (var))) + && SSA_NAME_VALUE (var) + && is_gimple_min_invariant (SSA_NAME_VALUE (var))) { val.lattice_val = CONSTANT; - val.const_val = SSA_NAME_EQUIV (var); + val.const_val = SSA_NAME_VALUE (var); } else if (TREE_CODE (sym) == PARM_DECL || TREE_THIS_VOLATILE (sym)) { @@ -611,7 +611,7 @@ substitute_and_fold (void) if (value->lattice_val == CONSTANT && is_gimple_reg (name) && is_gimple_min_invariant (value->const_val)) - SET_SSA_NAME_EQUIV (name, value->const_val) + SSA_NAME_VALUE (name) = value->const_val; } } |