From a1e71b01801dbf67c2dc9d598b3e62091b4677b2 Mon Sep 17 00:00:00 2001 From: Bin Cheng Date: Wed, 18 May 2016 10:41:28 +0000 Subject: [PATCH] tree-ssa-loop-ivopts.c (get_computation_cost_at): Check inv expression pointer, not pointer to the pointer. * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check inv expression pointer, not pointer to the pointer. From-SVN: r236371 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-loop-ivopts.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f3f6d38b9cf..a011528db7c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-05-18 Bin Cheng + + * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant + expression pointer, not pointer to the pointer. + 2016-05-18 Jakub Jelinek * config/i386/sse.md (pbroadcast_evex_isa): New mode attr. diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index e8953a05b0b..9ce6b649519 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -4874,7 +4874,7 @@ get_computation_cost_at (struct ivopts_data *data, *inv_expr = get_loop_invariant_expr (data, ubase, cbase, ratio, address_p); /* Clear depends on. */ - if (inv_expr != NULL) + if (*inv_expr != NULL) bitmap_clear (*depends_on); } -- 2.30.2