diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2013-10-09 13:42:17 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 2013-10-09 13:42:17 +0000 |
commit | cc524fc7b800bff51dc86d05d8ce80d9c5524ef3 (patch) | |
tree | 40318ce4bf8ae61fbdc6507579e982b6008fb23f /gcc/tree-sra.c | |
parent | 713438778be52a0cb0533fad271c05481435b519 (diff) | |
download | gcc-cc524fc7b800bff51dc86d05d8ce80d9c5524ef3.zip gcc-cc524fc7b800bff51dc86d05d8ce80d9c5524ef3.tar.gz gcc-cc524fc7b800bff51dc86d05d8ce80d9c5524ef3.tar.bz2 |
tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
* tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
(struct int_tree_map): Move to tree-hasher.h
(SCALE, LABEL, PERCENT): Move to gimple.h
* tree-flow-inline.h: Delete. Move functions to other files.
(unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
* gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
(gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
* gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
(SCALE, LABEL, PERCENT): Relocate from tree-flow.h
* tree-hasher.h: Don't include tree-flow.h.
(struct int_tree_map): Relocate from tree-flow.h.
* tree-sra.c (contains_view_convert_expr_p): Relocate from
tree-flow-inline.h and make static.
* tree-ssa-alias.h (ranges_overlap_p): Relocate from tree-flow-inline.h.
* tree-ssa-operands.c (gimple_ssa_operands): Relocate from
tree-flow-inline.h and make static.
* tree.h (is_global_var, may_be_aliased): Relocate from
tree-flow-inline.h.
* Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
* value-prof.c: No longer include tree-flow-inline.h.
* tree-switch-conversion.c: No longer include tree-flow-inline.h.
From-SVN: r203318
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r-- | gcc/tree-sra.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c index a2529cb..82520ba 100644 --- a/gcc/tree-sra.c +++ b/gcc/tree-sra.c @@ -1009,6 +1009,21 @@ completely_scalarize_var (tree var) completely_scalarize_record (var, var, 0, var); } +/* Return true if REF has an VIEW_CONVERT_EXPR somewhere in it. */ + +static inline bool +contains_view_convert_expr_p (const_tree ref) +{ + while (handled_component_p (ref)) + { + if (TREE_CODE (ref) == VIEW_CONVERT_EXPR) + return true; + ref = TREE_OPERAND (ref, 0); + } + + return false; +} + /* Search the given tree for a declaration by skipping handled components and exclude it from the candidates. */ |