summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-16 18:48:16 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-16 18:48:16 +0000
commit248c50020cf5208e9efc80cf88a9520ce75dcda1 (patch)
tree76704307c4a3db5f9d9f20ce229d12cf41da393a
parentb11af8ed8150c8b723bb4266ae5f1dd3db228bc7 (diff)
downloadgcc-248c50020cf5208e9efc80cf88a9520ce75dcda1.tar.gz
* tree-ssa-propagate.c (stmt_makes_single_load): Remove.
* tree-ssa-propagate.h: Remove the prototype for stmt_makes_single_load. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146213 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-propagate.c30
-rw-r--r--gcc/tree-ssa-propagate.h1
3 files changed, 6 insertions, 31 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7190d1919c0..d530427c2b2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2009-04-16 Kazu Hirata <kazu@codesourcery.com>
+ * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
+ * tree-ssa-propagate.h: Remove the prototype for
+ stmt_makes_single_load.
+
+2009-04-16 Kazu Hirata <kazu@codesourcery.com>
+
* emit-rtl.c (set_mem_attrs_from_reg): Remove.
* rtl.h: Remove the prototype for set_mem_attrs_from_reg.
diff --git a/gcc/tree-ssa-propagate.c b/gcc/tree-ssa-propagate.c
index ad6858891e6..76aec2ab0f6 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
diff --git a/gcc/tree-ssa-propagate.h b/gcc/tree-ssa-propagate.h
index b965890c0a8..3c267247717 100644
--- a/gcc/tree-ssa-propagate.h
+++ b/gcc/tree-ssa-propagate.h
@@ -118,7 +118,6 @@ bool valid_gimple_rhs_p (tree);
bool valid_gimple_call_p (tree);
void move_ssa_defining_stmt_for_defs (gimple, gimple);
bool update_call_from_tree (gimple_stmt_iterator *, tree);
-bool stmt_makes_single_load (gimple);
bool stmt_makes_single_store (gimple);
bool substitute_and_fold (prop_value_t *, bool);