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

            Bug ID: 91509
           Summary: -fprefetch-loop-arrays and LTO causes memory usage
                    compiling wrf to go through the roof
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

Our daily SPEC 2006 tester on a bdver2 machine (thus, -fprefetch-loop-arrays is
on by default) runs into its 4GB virtual memory usage limit since r271377
when compiling with -Ofast -flto -march=native (where native is bdver2).

Memory use peaks at about 5.5GB where 4GB is reachend when first computing
DF live after RTL loop opts and the peak is during scheduling.  There are
a lot of pseudos around (~260000) during DF live compute.

Reply via email to