Update various expressions within tree-scalar-evolution.c to be gimple_phi
commitfc1233e7d82756ad0d7d670ae16453988d938368
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 12 Dec 2013 22:21:33 +0000 (12 17:21 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 24 Oct 2014 21:23:55 +0000 (24 17:23 -0400)
treeb31ef5b1043c734c2f436d79e6271a678582b70c
parent6908c9c68a779a94f915cb86eb2ea6f6ddf37ec5
Update various expressions within tree-scalar-evolution.c to be gimple_phi

This corresponds to:
  [PATCH 17/89] Update various expressions within tree-scalar-evolution.c to be gimple_phi
  https://gcc.gnu.org/ml/gcc-patches/2014-04/msg01150.html
from the original 89-patch kit

That earlier patch was approved by Jeff:
> OK when prerequisites have gone in.
> Actually that's true for #17 & #18 as well.
in https://gcc.gnu.org/ml/gcc-patches/2014-05/msg00626.html

gcc/
* tree-scalar-evolution.c (follow_ssa_edge): Require a gimple_phi,
rather than a gimple.
(follow_ssa_edge_binary): Likewise.
(follow_ssa_edge_expr): Likewise.
(follow_ssa_edge_in_rhs): Likewise.
(backedge_phi_arg_p): Likewise.
(follow_ssa_edge_in_condition_phi_branch): Likewise.
(follow_ssa_edge_in_condition_phi): Likewise.
(follow_ssa_edge_inner_loop_phi): Likewise.
(analyze_evolution_in_loop): Likewise.
(analyze_initial_condition): Likewise.
(interpret_loop_phi): Likewise.
(interpret_condition_phi): Likewise.
(follow_ssa_edge): Likewise; also, add checked casts to gimple_phi.

(analyze_scalar_evolution_1): Add checked casts to gimple_phi
within "case GIMPLE_PHI".
gcc/ChangeLog.gimple-classes
gcc/tree-scalar-evolution.c