aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-07-27 18:17:00 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-07-27 18:17:00 -0700
commite847cc68ebc1e2a961941e75ae613fec9f90463b (patch)
tree0c30f61b19cf213402a8b9492ba3424c41e1602b /gcc/tree-sra.c
parentb91accd685798cd0cb4f775bfcdcc40c18efbdb6 (diff)
downloadgcc-e847cc68ebc1e2a961941e75ae613fec9f90463b.zip
gcc-e847cc68ebc1e2a961941e75ae613fec9f90463b.tar.gz
gcc-e847cc68ebc1e2a961941e75ae613fec9f90463b.tar.bz2
gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
* 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. From-SVN: r85243
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 73866b4..30d8e34 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