Commit c7041a4f by Bin Cheng Committed by Bin Cheng

tree-vect-loop.c (vect_create_epilog_for_reduction): Only insert gimple seq if it's not empty.

	* tree-vect-loop.c (vect_create_epilog_for_reduction): Only
	insert gimple seq if it's not empty.

From-SVN: r237550
parent 97816be4
2016-06-17 Bin Cheng <bin.cheng@arm.com>
* tree-vect-loop.c (vect_create_epilog_for_reduction): Only
insert gimple seq if it's not empty.
2016-06-17 Bin Cheng <bin.cheng@arm.com> 2016-06-17 Bin Cheng <bin.cheng@arm.com>
* tree-vectorizer.h (struct dr_with_seg_len): Remove class * tree-vectorizer.h (struct dr_with_seg_len): Remove class
......
...@@ -4353,7 +4353,9 @@ vect_create_epilog_for_reduction (vec<tree> vect_defs, gimple *stmt, ...@@ -4353,7 +4353,9 @@ vect_create_epilog_for_reduction (vec<tree> vect_defs, gimple *stmt,
gimple_seq stmts; gimple_seq stmts;
vec_init_def = force_gimple_operand (vec_initial_defs[i], &stmts, vec_init_def = force_gimple_operand (vec_initial_defs[i], &stmts,
true, NULL_TREE); true, NULL_TREE);
gsi_insert_seq_on_edge_immediate (loop_preheader_edge (loop), stmts); if (stmts)
gsi_insert_seq_on_edge_immediate (loop_preheader_edge (loop), stmts);
def = vect_defs[i]; def = vect_defs[i];
for (j = 0; j < ncopies; j++) for (j = 0; j < ncopies; j++)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment