https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123736

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'd go with
2026-01-21  Jakub Jelinek  <[email protected]>

        PR tree-optimization/123736
        * tree-ssa-loop-unswitch.cc (hoist_guard): Guard dump message
        on dump_file && (dump_flags & TDF_DETAILS) condition.

--- gcc/tree-ssa-loop-unswitch.cc.jj    2026-01-02 09:56:10.389332765 +0100
+++ gcc/tree-ssa-loop-unswitch.cc       2026-01-21 16:33:51.943389809 +0100
@@ -1459,7 +1459,8 @@ hoist_guard (class loop *loop, edge guar

   if (skip_count > e->count ())
     {
-      fprintf (dump_file, "  Capping count; expect profile inconsistency\n");
+      if (dump_file && (dump_flags & TDF_DETAILS))
+       fprintf (dump_file, "  Capping count; expect profile inconsistency\n");
       skip_count = e->count ();
     }
   if (dump_enabled_p ())

Reply via email to