tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize scratch field for goto...
authorBin Cheng <bin.cheng@arm.com>
Thu, 31 Mar 2016 16:17:44 +0000 (16:17 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 31 Mar 2016 16:17:44 +0000 (16:17 +0000)
* tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
scratch field for goto case.

From-SVN: r234639

gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c

index 0da6ea672d39dda0ff73608fe83737e6fa5787af..f274585b5f07d29168eb1da02dd098d37abea183 100644 (file)
@@ -1,3 +1,8 @@
+2016-03-31  Bin Cheng  <bin.cheng@arm.com>
+
+       * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
+       scratch field for goto case.
+
 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
index c8a8406134fd894fa1e47e021eb7e0b36bbf160e..7be4f16fbac602a293b9ed41a8d37d006c510ce9 100644 (file)
@@ -5030,7 +5030,9 @@ fallback:
     if (address_p)
       comp = build_simple_mem_ref (comp);
 
-    return new_cost (computation_cost (comp, speed), 0);
+    cost = new_cost (computation_cost (comp, speed), 0);
+    cost.scratch = 0;
+    return cost;
   }
 }