[Bug rtl-optimization/98863] [11 Regression] WRF with LTO consumes a lot of memory in REE, FWPROP and x86 specific passes

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 3 12:33:34 GMT 2021


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

--- Comment #38 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:550bf0c50024c320b7010d1b2bf644c5c918ad98

commit r10-9341-g550bf0c50024c320b7010d1b2bf644c5c918ad98
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Jan 29 16:02:36 2021 +0100

    rtl-optimization/98863 - tame i386 specific RPAD pass

    This removes analyzing DF with expensive problems which we do not
    use at all and which somehow cause 5GB of memory to leak.  Instead
    just do a defered rescan of added insns.

    This avoids

    > FAIL: gcc.c-torture/compile/20051216-1.c   -O1  (internal compiler error)
    > FAIL: gcc.c-torture/compile/20051216-1.c   -O1  (test for excess errors)

    by clearing DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans,
    so that it doesn't leak into following unprepared passes that expect
    non-deferred rescans.

    2021-02-03  Richard Biener  <rguenther@suse.de>
                Jakub Jelinek  <jakub@redhat.com>

            PR rtl-optimization/98863
            * config/i386/i386-features.c (remove_partial_avx_dependency):
            Do not perform DF analysis.
            (pass_data_remove_partial_avx_dependency): Remove
            TODO_df_finish.

            * gcc.target/i386/20051216-1.c: New test.


More information about the Gcc-bugs mailing list