diff options
author | Bin Cheng <bin.cheng@arm.com> | 2016-03-31 16:17:44 +0000 |
---|---|---|
committer | Bin Cheng <amker@gcc.gnu.org> | 2016-03-31 16:17:44 +0000 |
commit | 865c2770db7c23218e8c47f6200b54dbc4ccc179 (patch) | |
tree | 2f79750b6a36efb4809a2c22dc34294f64317dd7 /gcc | |
parent | 5918459a1d0113b48496ca3fe59ebe50746ac055 (diff) | |
download | gcc-865c2770db7c23218e8c47f6200b54dbc4ccc179.zip gcc-865c2770db7c23218e8c47f6200b54dbc4ccc179.tar.gz gcc-865c2770db7c23218e8c47f6200b54dbc4ccc179.tar.bz2 |
tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize scratch field for goto case.
* tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
scratch field for goto case.
From-SVN: r234639
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0da6ea6..f274585 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index c8a8406..7be4f16 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -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; } } |