aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-transform.c
diff options
context:
space:
mode:
authorIra Rosen <irar@gcc.gnu.org>2007-02-22 12:30:12 +0000
committerIra Rosen <irar@gcc.gnu.org>2007-02-22 12:30:12 +0000
commit8fca6de5641592fdaa5e03a415b1727f5e1ddcaf (patch)
treed9253aab39b73d5f69ae734d600a9eb4aeeb1242 /gcc/tree-vect-transform.c
parente8020d1ff6d2b529d4a3f0467d883dc52f0e0758 (diff)
downloadgcc-8fca6de5641592fdaa5e03a415b1727f5e1ddcaf.zip
gcc-8fca6de5641592fdaa5e03a415b1727f5e1ddcaf.tar.gz
gcc-8fca6de5641592fdaa5e03a415b1727f5e1ddcaf.tar.bz2
re PR tree-optimization/30843 (ice for legal code with -ftree-vectorize -O2)
PR tree-optimization/30843 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar stores only after all the group is vectorized. From-SVN: r122225
Diffstat (limited to 'gcc/tree-vect-transform.c')
-rw-r--r--gcc/tree-vect-transform.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/gcc/tree-vect-transform.c b/gcc/tree-vect-transform.c
index 109705d..09f1993 100644
--- a/gcc/tree-vect-transform.c
+++ b/gcc/tree-vect-transform.c
@@ -5059,7 +5059,7 @@ vect_transform_loop (loop_vec_info loop_vinfo)
struct loop *loop = LOOP_VINFO_LOOP (loop_vinfo);
basic_block *bbs = LOOP_VINFO_BBS (loop_vinfo);
int nbbs = loop->num_nodes;
- block_stmt_iterator si;
+ block_stmt_iterator si, next_si;
int i;
tree ratio = NULL;
int vectorization_factor = LOOP_VINFO_VECT_FACTOR (loop_vinfo);
@@ -5212,12 +5212,14 @@ vect_transform_loop (loop_vec_info loop_vinfo)
while (next)
{
+ next_si = bsi_for_stmt (next);
next_stmt_info = vinfo_for_stmt (next);
/* Free the attached stmt_vec_info and remove the stmt. */
ann = stmt_ann (next);
tmp = DR_GROUP_NEXT_DR (next_stmt_info);
free (next_stmt_info);
set_stmt_info (ann, NULL);
+ bsi_remove (&next_si, true);
next = tmp;
}
bsi_remove (&si, true);
@@ -5233,16 +5235,6 @@ vect_transform_loop (loop_vec_info loop_vinfo)
continue;
}
}
- else
- {
- if (strided_store)
- {
- /* This is case of skipped interleaved store. We don't free
- its stmt_vec_info. */
- bsi_remove (&si, true);
- continue;
- }
- }
bsi_next (&si);
} /* stmts in BB */
} /* BBs in loop */