From: Richard Biener Date: Mon, 3 Jul 2017 09:42:22 +0000 (+0000) Subject: tree-vect-loop.c (vect_create_epilog_for_reduction): Revert back to using VIEW_CONVER... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6d447f20948b35804fd780f8f1a237c9d36826f;p=gcc.git tree-vect-loop.c (vect_create_epilog_for_reduction): Revert back to using VIEW_CONVERT_EXPR. 2017-07-03 Richard Biener * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert back to using VIEW_CONVERT_EXPR. From-SVN: r249902 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8724cd99c88..721901cea1c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-07-03 Richard Biener + + * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert + back to using VIEW_CONVERT_EXPR. + 2017-07-03 Martin Liska * asan.c (asan_emit_stack_protection): Unpoison just red zones diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index ace3b8c9cc9..d34a1f96ac9 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -4842,7 +4842,8 @@ vect_create_epilog_for_reduction (vec vect_defs, gimple *stmt, /* Convert the reduced value back to the result type and set as the result. */ gimple_seq stmts = NULL; - new_temp = gimple_convert (&stmts, scalar_type, data_reduc); + new_temp = gimple_build (&stmts, VIEW_CONVERT_EXPR, scalar_type, + data_reduc); gsi_insert_seq_before (&exit_gsi, stmts, GSI_SAME_STMT); scalar_results.safe_push (new_temp); }