gcc/
        * tree-predcom.c (find_looparound_phi): Return a gimple_phi rather
        than just a gimple.
        (insert_looparound_copy): Require a gimple_phi rather than just a
        gimple.
        (add_looparound_copies): Convert local "phi" to be a gimple_phi.
        (initialize_root_vars): Likewise.
        (initialize_root_vars_lm): Likewise.
---
 gcc/tree-predcom.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c
index e367b5c..4226543 100644
--- a/gcc/tree-predcom.c
+++ b/gcc/tree-predcom.c
@@ -1082,7 +1082,7 @@ valid_initializer_p (struct data_reference *ref,
    iteration), returns the phi node.  Otherwise, NULL_TREE is returned.  ROOT
    is the root of the current chain.  */
 
-static gimple
+static gimple_phi
 find_looparound_phi (struct loop *loop, dref ref, dref root)
 {
   tree name, init, init_ref;
@@ -1144,7 +1144,7 @@ find_looparound_phi (struct loop *loop, dref ref, dref 
root)
 /* Adds a reference for the looparound copy of REF in PHI to CHAIN.  */
 
 static void
-insert_looparound_copy (chain_p chain, dref ref, gimple phi)
+insert_looparound_copy (chain_p chain, dref ref, gimple_phi phi)
 {
   dref nw = XCNEW (struct dref_d), aref;
   unsigned i;
@@ -1175,7 +1175,7 @@ add_looparound_copies (struct loop *loop, chain_p chain)
 {
   unsigned i;
   dref ref, root = get_chain_root (chain);
-  gimple phi;
+  gimple_phi phi;
 
   FOR_EACH_VEC_ELT (chain->refs, i, ref)
     {
@@ -1427,7 +1427,7 @@ initialize_root_vars (struct loop *loop, chain_p chain, 
bitmap tmp_vars)
   dref root = get_chain_root (chain);
   bool reuse_first = !chain->has_max_use_after;
   tree ref, init, var, next;
-  gimple phi;
+  gimple_phi phi;
   gimple_seq stmts;
   edge entry = loop_preheader_edge (loop), latch = loop_latch_edge (loop);
 
@@ -1501,7 +1501,7 @@ initialize_root_vars_lm (struct loop *loop, dref root, 
bool written,
   unsigned i;
   tree ref = DR_REF (root->ref), init, var, next;
   gimple_seq stmts;
-  gimple phi;
+  gimple_phi phi;
   edge entry = loop_preheader_edge (loop), latch = loop_latch_edge (loop);
 
   /* Find the initializer for the variable, and check that it cannot
-- 
1.7.11.7

Reply via email to