]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Dump ANTIC_OUT before pruning it
authorRichard Biener <rguenther@suse.de>
Tue, 23 May 2023 09:55:45 +0000 (11:55 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 23 May 2023 10:56:57 +0000 (12:56 +0200)
This dumps ANTIC_OUT before pruning clobbered mems from it as part
of the ANTIC_IN compute.

* tree-ssa-pre.cc (compute_antic_aux): Dump the correct
ANTIC_OUT.

gcc/tree-ssa-pre.cc

index d56431b414512cbda626067ee44163373bff1414..b1ceea90a8e06915e3fdd60e0f307b2728ccec77 100644 (file)
@@ -2216,6 +2216,10 @@ compute_antic_aux (basic_block block, bool block_has_abnormal_pred_edge)
        }
     }
 
+  /* Dump ANTIC_OUT before it's pruned.  */
+  if (dump_file && (dump_flags & TDF_DETAILS))
+    print_bitmap_set (dump_file, ANTIC_OUT, "ANTIC_OUT", block->index);
+
   /* Prune expressions that are clobbered in block and thus become
      invalid if translated from ANTIC_OUT to ANTIC_IN.  */
   prune_clobbered_mems (ANTIC_OUT, block);
@@ -2270,9 +2274,6 @@ compute_antic_aux (basic_block block, bool block_has_abnormal_pred_edge)
  maybe_dump_sets:
   if (dump_file && (dump_flags & TDF_DETAILS))
     {
-      if (ANTIC_OUT)
-       print_bitmap_set (dump_file, ANTIC_OUT, "ANTIC_OUT", block->index);
-
       if (changed)
        fprintf (dump_file, "[changed] ");
       print_bitmap_set (dump_file, ANTIC_IN (block), "ANTIC_IN",