tree-vect-loop.c (vect_create_epilog_for_reduction): Revert back to using VIEW_CONVER...
authorRichard Biener <rguenther@suse.de>
Mon, 3 Jul 2017 09:42:22 +0000 (09:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 3 Jul 2017 09:42:22 +0000 (09:42 +0000)
2017-07-03  Richard Biener  <rguenther@suse.de>

* tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
back to using VIEW_CONVERT_EXPR.

From-SVN: r249902

gcc/ChangeLog
gcc/tree-vect-loop.c

index 8724cd99c886de0d2780c5105665220c5e70a8b9..721901cea1c25fc9d8835c7c7274e82f3816ca99 100644 (file)
@@ -1,3 +1,8 @@
+2017-07-03  Richard Biener  <rguenther@suse.de>
+
+       * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
+       back to using VIEW_CONVERT_EXPR.
+
 2017-07-03  Martin Liska  <mliska@suse.cz>
 
        * asan.c (asan_emit_stack_protection): Unpoison just red zones
index ace3b8c9cc948d072d844536cbd2be6532b42230..d34a1f96ac91473fb39d5a5949ee647fcc3faf4f 100644 (file)
@@ -4842,7 +4842,8 @@ vect_create_epilog_for_reduction (vec<tree> 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);
     }