Fix PR92460
diff mbox series

Message ID nycvar.YFH.7.76.1911121310320.5566@zhemvz.fhfr.qr
State New
Headers show
Series
  • Fix PR92460
Related show

Commit Message

Richard Biener Nov. 12, 2019, 12:10 p.m. UTC
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2019-11-12  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/92460
	* tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
	expression before gimplifying.

Patch
diff mbox series

Index: gcc/tree-vect-stmts.c
===================================================================
--- gcc/tree-vect-stmts.c	(revision 278081)
+++ gcc/tree-vect-stmts.c	(working copy)
@@ -4246,8 +4246,8 @@  vectorizable_simd_clone_call (stmt_vec_i
 		{
 		  gimple_seq stmts;
 		  arginfo[i].op
-		    = force_gimple_operand (arginfo[i].op, &stmts, true,
-					    NULL_TREE);
+		    = force_gimple_operand (unshare_expr (arginfo[i].op),
+					    &stmts, true, NULL_TREE);
 		  if (stmts != NULL)
 		    {
 		      basic_block new_bb;