summaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-28 01:17:00 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-28 01:17:00 +0000
commitc2514472e15476dac16d57406e535ccc2ed0fa08 (patch)
tree0c30f61b19cf213402a8b9492ba3424c41e1602b /gcc/tree-sra.c
parentaa0be1ca428fb600c08a6156e5fb4ea0fe0f98b6 (diff)
downloadgcc-c2514472e15476dac16d57406e535ccc2ed0fa08.tar.gz
* gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
(gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use is_gimple_addressable. * tree-gimple.c (is_gimple_addressable): Rename from is_gimple_addr_expr_arg; accept INDIRECT_REF. (is_gimple_lvalue): Don't test INDIRECT_REF directly. * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for rename to is_gimple_addressable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85243 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r--gcc/tree-sra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index 73866b4972a..30d8e34d32b 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -826,7 +826,7 @@ sra_walk_modify_expr (tree expr, block_stmt_iterator *bsi,
The lvalue requirement prevents us from trying to directly scalarize
the result of a function call. Which would result in trying to call
the function multiple times, and other evil things. */
- else if (!lhs_elt->is_scalar && is_gimple_addr_expr_arg (rhs))
+ else if (!lhs_elt->is_scalar && is_gimple_addressable (rhs))
fns->ldst (lhs_elt, rhs, bsi, true);
/* Otherwise we're being used in some context that requires the