]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix block index check in insert_updated_phi_nodes_for
authorRichard Biener <rguenther@suse.de>
Thu, 4 Apr 2024 13:16:28 +0000 (15:16 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 7 May 2024 13:28:55 +0000 (15:28 +0200)
This replaces a >= 0 block index check with the appropriate NUM_FIXED_BLOCKs,
the check is from times ENTRY_BLOCK was negative.

* tree-into-ssa.cc (insert_updated_phi_nodes_for): Fix block
index check.

gcc/tree-into-ssa.cc

index d12a4a97f651eb83f01d00cc404708a48c999b95..705e4119ba3baadf572f8da4a92ed1fc5c807f58 100644 (file)
@@ -3301,7 +3301,7 @@ insert_updated_phi_nodes_for (tree var, bitmap_head *dfs,
 
          mark_block_for_update (bb);
          FOR_EACH_EDGE (e, ei, bb->preds)
-           if (e->src->index >= 0)
+           if (e->src->index >= NUM_FIXED_BLOCKS)
              mark_block_for_update (e->src);
        }