summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-stmts.c
diff options
context:
space:
mode:
authorirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-25 07:56:32 +0000
committerirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-25 07:56:32 +0000
commit765a637f0e40c74ccb892fa61053af36738456b7 (patch)
tree0b5321d9c900d16365e4970cc0a06605923773b1 /gcc/tree-vect-stmts.c
parent1eb4ddaff88afdbaa1a7d5ecf9c4fc61800078b2 (diff)
downloadgcc-765a637f0e40c74ccb892fa61053af36738456b7.tar.gz
PR tree-optimization/40238
* tree-vect-stmts.c (vect_init_vector): Insert initialization statements after basic block's labels. * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info() to free the allocated memory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147844 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-stmts.c')
-rw-r--r--gcc/tree-vect-stmts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c
index 9ac733a76be..5ca8d942e18 100644
--- a/gcc/tree-vect-stmts.c
+++ b/gcc/tree-vect-stmts.c
@@ -833,7 +833,7 @@ vect_init_vector (gimple stmt, tree vector_var, tree vector_type,
gcc_assert (bb_vinfo);
bb = BB_VINFO_BB (bb_vinfo);
- gsi_bb_start = gsi_start_bb (bb);
+ gsi_bb_start = gsi_after_labels (bb);
gsi_insert_before (&gsi_bb_start, init_stmt, GSI_SAME_STMT);
}
}