Commit 30540e79 by Jakub Jelinek Committed by Jakub Jelinek

re PR other/58712 (issues found by --enable-checking=valgrind)

	PR other/58712
	* omp-low.c (simd_clone_struct_copy): If from->inbranch
	is set, copy one less argument.
	(expand_simd_clones): Don't subtract clone_info->inbranch
	from simd_clone_struct_alloc argument.

From-SVN: r207462
parent 92d05580
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
PR other/58712 PR other/58712
* omp-low.c (simd_clone_struct_copy): If from->inbranch * omp-low.c (simd_clone_struct_copy): If from->inbranch
is set, copy one less argument. is set, copy one less argument.
(expand_simd_clones): Don't subtract clone_info->inbranch
from simd_clone_struct_alloc argument.
PR rtl-optimization/57915 PR rtl-optimization/57915
* recog.c (simplify_while_replacing): If all unary/binary/relational * recog.c (simplify_while_replacing): If all unary/binary/relational
......
...@@ -11694,7 +11694,6 @@ expand_simd_clones (struct cgraph_node *node) ...@@ -11694,7 +11694,6 @@ expand_simd_clones (struct cgraph_node *node)
if (i != 0) if (i != 0)
{ {
clone = simd_clone_struct_alloc (clone_info->nargs clone = simd_clone_struct_alloc (clone_info->nargs
- clone_info->inbranch
+ ((i & 1) != 0)); + ((i & 1) != 0));
simd_clone_struct_copy (clone, clone_info); simd_clone_struct_copy (clone, clone_info);
/* Undo changes targetm.simd_clone.compute_vecsize_and_simdlen /* Undo changes targetm.simd_clone.compute_vecsize_and_simdlen
......
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