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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

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

commit r15-7878-ge1c49f413c8c892a61612b3b89de0607ff7ba893
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Feb 10 10:23:45 2025 +0100

    middle-end/118801 - excessive redundant DEBUG BEGIN_STMT

    The following addresses the fact that we keep an excessive amount of
    redundant DEBUG BEGIN_STMTs - in the testcase it sums up to 99.999%
    of all stmts, sucking up compile-time in IL walks.  The patch amends
    the GIMPLE DCE code that elides redundant DEBUG BIND stmts, also
    pruning uninterrupted sequences of DEBUG BEGIN_STMTs, keeping only
    the last of each set of DEBUG BEGIN_STMT with unique location.

            PR middle-end/118801
            * tree-ssa-dce.cc (eliminate_unnecessary_stmts): Prune
            sequences of uninterrupted DEBUG BEGIN_STMTs, keeping only
            the last of a set with unique location.

Reply via email to