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/tree-ssa-loop-ivopts.c | |
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/tree-ssa-loop-ivopts.c')
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } } |