[PATCH] Fix PR92460

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Fix PR92460

Richard Biener

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2019-11-12  Richard Biener  <[hidden email]>

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

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;