https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90270

--- Comment #13 from jojo <rjiejie at me dot com> ---
Hi, guys,

Any solution for this issue ? 

My be the following patch is choice :) ?

Are there issue with applied this patch ?

--- tree-ssa-loop-ivopts-orig.c 2019-05-17 09:32:58.052000000 +0800
+++ tree-ssa-loop-ivopts.c      2019-05-17 09:32:46.508000000 +0800
@@ -4513,8 +4513,10 @@
    generated invariant expression may not be hoisted out of loop by
    following pass.  We penalize the cost by rounding up in order to
    neutralize such effects.  */
+      #if 0
       cost.cost = adjust_setup_cost (data, cost.cost, true);
       cost.scratch = cost.cost;
+      #endif
     }

   cost += var_cost;

Reply via email to