diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-17 23:33:46 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-17 23:33:46 +0000 |
commit | 0c46459a16285a96d211edec465763f9c34ece13 (patch) | |
tree | 43cdb5f4d2475904967ded397fa79c8c9d1c7fcf /gcc/tree-sra.c | |
parent | 4d2c8fe9b24d2d5f0da2f87668ecce59695fa059 (diff) | |
download | ppe42-gcc-0c46459a16285a96d211edec465763f9c34ece13.tar.gz ppe42-gcc-0c46459a16285a96d211edec465763f9c34ece13.zip |
PR 17051
* tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86158 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r-- | gcc/tree-sra.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c index b3fa20c6c77..e6b254c6145 100644 --- a/gcc/tree-sra.c +++ b/gcc/tree-sra.c @@ -1780,11 +1780,9 @@ scalarize_use (struct sra_elt *elt, tree *expr_p, block_stmt_iterator *bsi, generate_copy_inout (elt, is_output, generate_element_ref (elt), &list); if (list == NULL) return; + mark_all_v_defs (expr_first (list)); if (is_output) - { - mark_all_v_defs (expr_first (list)); - sra_insert_after (bsi, list); - } + sra_insert_after (bsi, list); else sra_insert_before (bsi, list); } |