Update ssa_prop_visit_phi_fn callbacks to take a gimple_phi
commit264943c1393c7aef9ff30fed91668cf90f68b4e2
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 10 Dec 2013 21:04:30 +0000 (10 16:04 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 24 Oct 2014 21:23:44 +0000 (24 17:23 -0400)
treec9fcf57e17ea1de32f9b1483bbb9bfaf6dfb7df1
parent75d9720ddc04f4138260e05990f30ca0f391a496
Update ssa_prop_visit_phi_fn callbacks to take a gimple_phi

This corresponds to:
  [PATCH 10/89] Update ssa_prop_visit_phi_fn callbacks to take a gimple_phi
  https://gcc.gnu.org/ml/gcc-patches/2014-04/msg01216.html
from the original 89-patch kit

That earlier patch was approved by Jeff:
> OK when prerequisites have gone in.
in https://gcc.gnu.org/ml/gcc-patches/2014-05/msg00619.html

gcc/
* tree-ssa-propagate.h (typedef ssa_prop_visit_phi_fn): Strengthen
type of parameter from gimple to gimple_phi.

* tree-complex.c (complex_visit_phi): Update signature of callback
implementation accordingly.
* tree-ssa-ccp.c (ccp_visit_phi_node): Likewise.
* tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
* tree-vrp.c (vrp_visit_phi_node): Likewise.

* tree-ssa-propagate.c (simulate_stmt): Add a checked cast to
gimple_phi when invoking the ssa_prop_visit_phi callback.
gcc/ChangeLog.gimple-classes
gcc/tree-complex.c
gcc/tree-ssa-ccp.c
gcc/tree-ssa-copy.c
gcc/tree-ssa-propagate.c
gcc/tree-ssa-propagate.h
gcc/tree-vrp.c