Use gsi_bb instead of iterator->bb.
authorMartin Liska <mliska@suse.cz>
Mon, 29 Jun 2020 11:26:45 +0000 (13:26 +0200)
committerMartin Liska <mliska@suse.cz>
Mon, 29 Jun 2020 11:28:16 +0000 (13:28 +0200)
gcc/ChangeLog:

* tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Use gsi_bb
instead of gimple_stmt_iterator::bb.
* tree-ssa-math-opts.c (insert_reciprocals): Likewise.
* tree-vectorizer.h: Likewise.

gcc/tree-ssa-ccp.c
gcc/tree-ssa-math-opts.c
gcc/tree-vectorizer.h

index e8333ac27d9e6657d66f110d2a9f5a201b589f00..7e3921869b8582a192fcd513ad196f3a6fc6d578 100644 (file)
@@ -2159,7 +2159,7 @@ gsi_prev_dom_bb_nondebug (gimple_stmt_iterator *i)
   gsi_prev_nondebug (i);
   while (gsi_end_p (*i))
     {
-      dom = get_immediate_dominator (CDI_DOMINATORS, i->bb);
+      dom = get_immediate_dominator (CDI_DOMINATORS, gsi_bb (*i));
       if (dom == NULL || dom == ENTRY_BLOCK_PTR_FOR_FN (cfun))
        return;
 
index 104ae97a7072d63c2b98752b1bf2436ba19de3cc..8423caa3ee3c2e88c6321d637bdc92044a942102 100644 (file)
@@ -446,7 +446,7 @@ insert_reciprocals (gimple_stmt_iterator *def_gsi, struct occurrence *occ,
          if (should_insert_square_recip)
            gsi_insert_before (&gsi, new_square_stmt, GSI_SAME_STMT);
        }
-      else if (def_gsi && occ->bb == def_gsi->bb)
+      else if (def_gsi && occ->bb == gsi_bb (*def_gsi))
        {
          /* Case 2: insert right after the definition.  Note that this will
             never happen if the definition statement can throw, because in
index d9f6a67264dec5ccc66b957d482e95a52cc1bf3d..c393d7e5fa64b749fad0cc7a156ebcb6d2564764 100644 (file)
@@ -869,7 +869,7 @@ public:
   {
     const_reverse_iterator begin = region_end;
     if (*begin == NULL)
-      begin = const_reverse_iterator (gsi_last_bb (region_end.bb));
+      begin = const_reverse_iterator (gsi_last_bb (gsi_bb (region_end)));
     else
       ++begin;