Re: [PATCH 14/16] tree-ssa-loop-niter.c: use gimple_phi in a few places

2013-12-23 Thread David Malcolm
On Fri, 2013-12-13 at 12:13 -0500, Andrew MacLeod wrote: > On 12/13/2013 10:58 AM, David Malcolm wrote: > > { > > gimple stmt = SSA_NAME_DEF_STMT (x); > > @@ -2162,7 +2162,7 @@ chain_of_csts_start (struct loop *loop, tree x) > > if (gimple_code (stmt) == GIMPLE_PHI) > > { > >

Re: [PATCH 14/16] tree-ssa-loop-niter.c: use gimple_phi in a few places

2013-12-13 Thread Andrew MacLeod
On 12/13/2013 10:58 AM, David Malcolm wrote: { gimple stmt = SSA_NAME_DEF_STMT (x); @@ -2162,7 +2162,7 @@ chain_of_csts_start (struct loop *loop, tree x) if (gimple_code (stmt) == GIMPLE_PHI) { if (bb == loop->header) - return stmt; + return stmt->as_a_gimple_p

[PATCH 14/16] tree-ssa-loop-niter.c: use gimple_phi in a few places

2013-12-13 Thread David Malcolm
gcc/ * tree-ssa-loop-niter.c (chain_of_csts_start): Return a gimple_phi rather than a gimple. (get_base_for): Likewise; convert local "phi" to be a gimple_phi. (loop_niter_by_eval): Convert local "phi" to be a gimple_phi. --- gcc/tree-ssa-loop-niter.c | 11 ++---