diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2009-04-16 18:48:16 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2009-04-16 18:48:16 +0000 |
commit | 78fe4f1fabf716ce3438eda4bc6952cf145ba95f (patch) | |
tree | 76704307c4a3db5f9d9f20ce229d12cf41da393a /gcc/tree-ssa-propagate.c | |
parent | 43dd320186c8036fb50d96100979ba915a168130 (diff) | |
download | gcc-78fe4f1fabf716ce3438eda4bc6952cf145ba95f.zip gcc-78fe4f1fabf716ce3438eda4bc6952cf145ba95f.tar.gz gcc-78fe4f1fabf716ce3438eda4bc6952cf145ba95f.tar.bz2 |
tree-ssa-propagate.c (stmt_makes_single_load): Remove.
* tree-ssa-propagate.c (stmt_makes_single_load): Remove.
* tree-ssa-propagate.h: Remove the prototype for
stmt_makes_single_load.
From-SVN: r146213
Diffstat (limited to 'gcc/tree-ssa-propagate.c')
-rw-r--r-- | gcc/tree-ssa-propagate.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/tree-ssa-propagate.c b/gcc/tree-ssa-propagate.c index ad68588..76aec2a 100644 --- a/gcc/tree-ssa-propagate.c +++ b/gcc/tree-ssa-propagate.c @@ -828,36 +828,6 @@ ssa_propagate (ssa_prop_visit_stmt_fn visit_stmt, } -/* Return true if STMT is of the form 'LHS = mem_ref', where 'mem_ref' - is a non-volatile pointer dereference, a structure reference or a - reference to a single _DECL. Ignore volatile memory references - because they are not interesting for the optimizers. */ - -bool -stmt_makes_single_load (gimple stmt) -{ - tree rhs; - - if (gimple_code (stmt) != GIMPLE_ASSIGN) - return false; - - /* Only a GIMPLE_SINGLE_RHS assignment may have a - declaration or reference as its RHS. */ - if (get_gimple_rhs_class (gimple_assign_rhs_code (stmt)) - != GIMPLE_SINGLE_RHS) - return false; - - if (!gimple_vuse (stmt)) - return false; - - rhs = gimple_assign_rhs1 (stmt); - - return (!TREE_THIS_VOLATILE (rhs) - && (DECL_P (rhs) - || REFERENCE_CLASS_P (rhs))); -} - - /* Return true if STMT is of the form 'mem_ref = RHS', where 'mem_ref' is a non-volatile pointer dereference, a structure reference or a reference to a single _DECL. Ignore volatile memory references |