diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-12 14:34:11 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-12 14:34:11 +0000 |
commit | 2ce91ad730b32272f3e2aa86c83c2431ceaa0db6 (patch) | |
tree | a0fa15664fe5d4dfd7f6bced8b73b4839f33dfcb /gcc/tree-gimple.c | |
parent | 76aec42feedd95a299537c9678ea28a986c51a4f (diff) | |
download | gcc-2ce91ad730b32272f3e2aa86c83c2431ceaa0db6.tar.gz |
PR tree-optimization/16867
* tree.c (is_global_var): New function.
(needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
Call is_global_var.
* tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
Update all users.
(is_global_var): Declare.
* tree-dfa.c (dump_variable): Display global and addressable
attributes.
(add_referenced_var): Clarify documentation when marking
variables call-clobbered.
* tree-flow-inline.h (is_call_clobbered): Call is_global_var
instead of needs_to_live_in_memory.
(mark_call_clobbered): If the variable is a tag, mark it
DECL_EXTERNAL.
* tree-gimple.c (is_gimple_reg): Don't check for
TREE_ADDRESSABLE.
(is_gimple_non_addressable): Likewise.
* tree-ssa-alias.c (get_nmt_for): Always check whether the tag
needs to be marked call-clobbered.
(setup_pointers_and_addressables): Call is_global_var instead
of needs_to_live_in_memory.
* tree-ssa-dce.c (need_to_preserve_store): Remove.
Update all users with is_global_var.
(mark_stmt_if_obviously_necessary): Fix processing of aliased
stores. Don't check the virtual definitions. Rather, check
whether the store is going into global memory.
(find_obviously_necessary_stmts): Get the symbol from the PHI
result.
* tree-ssa-operands.c (get_call_expr_operands): Do not add
clobbering may-defs if the call does not have side effects.
libjava/ChangeLog
PR tree-optimization/16867
* testsuite/libjava.lang/PR16867.java: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85874 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-gimple.c')
-rw-r--r-- | gcc/tree-gimple.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/tree-gimple.c b/gcc/tree-gimple.c index 413395ae531..e2088935515 100644 --- a/gcc/tree-gimple.c +++ b/gcc/tree-gimple.c @@ -441,7 +441,6 @@ is_gimple_reg (tree t) /* A volatile decl is not acceptable because we can't reuse it as needed. We need to copy it into a temp first. */ && ! TREE_THIS_VOLATILE (t) - && ! TREE_ADDRESSABLE (t) && ! needs_to_live_in_memory (t)); } @@ -481,9 +480,7 @@ is_gimple_non_addressable (tree t) if (TREE_CODE (t) == SSA_NAME) t = SSA_NAME_VAR (t); - return (is_gimple_variable (t) - && ! TREE_ADDRESSABLE (t) - && ! needs_to_live_in_memory (t)); + return (is_gimple_variable (t) && ! needs_to_live_in_memory (t)); } /* Return true if T is a GIMPLE rvalue, i.e. an identifier or a constant. */ |