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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <[email protected]>:

https://gcc.gnu.org/g:b5df409996260a9900c47fd21ae3b57009ca096d

commit r16-6823-gb5df409996260a9900c47fd21ae3b57009ca096d
Author: David Malcolm <[email protected]>
Date:   Fri Jan 16 10:54:31 2026 -0500

    analyzer: add timevar values for supergraph manipulation [PR123145]

    Whilst tracking down the slowdown of PR analyzer/123145, I noticed that
    the various supergraph manipulations introduced in
    r16-6063-g0b786d961d4426 can take non-trivial amounts of time on
    complicated TUs.  Add timevars to track each of them.

    gcc/analyzer/ChangeLog:
            PR analyzer/123145
            * supergraph-fixup-locations.cc: Include "timevar.h".
            (supergraph::fixup_locations): Track time spent as
            TV_ANALYZER_SUPERGRAPH_FIXUP_LOCATIONS.
            * supergraph-simplify.cc: Include "timevar.h".
            (supergraph::simplify): Track time spent as
            TV_ANALYZER_SUPERGRAPH_SIMPLIFY.
            * supergraph-sorting.cc: Include "timevar.h".
            (supergraph::sort_nodes): Track time spent as
            TV_ANALYZER_SUPERGRAPH_SORTING.
            * supergraph.cc (supergraph::supergraph): Track time spent as
            TV_ANALYZER_SUPERGRAPH_CREATION rather than
            TV_ANALYZER_SUPERGRAPH.

    gcc/ChangeLog:
            PR analyzer/123145
            * timevar.def (TV_ANALYZER_SUPERGRAPH): Rename to...
            (TV_ANALYZER_SUPERGRAPH_CREATION): ...this.
            (TV_ANALYZER_SUPERGRAPH_FIXUP_LOCATIONS): New.
            (TV_ANALYZER_SUPERGRAPH_SIMPLIFY): New.
            (TV_ANALYZER_SUPERGRAPH_SORTING): New.

    Signed-off-by: David Malcolm <[email protected]>

Reply via email to