[Bug fortran/48636] New: Enable more inlining with -O2 and higher

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 15 21:05:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48636

           Summary: Enable more inlining with -O2 and higher
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tkoenig@gcc.gnu.org


See http://gcc.gnu.org/ml/fortran/2011-04/msg00144.html .

We whould inline more for Fortran at higher optimization levels.

Options to consider:

- Set -finline-limit=600 for -O2 and higher

- Consider heuristics to mark functions as inline in the front end:

    - If it has many arguments (argument processing has a lot of effect)

    - If it uses assumed-shape arrays (setting up that array descriptor
      may take a lot of time

    - Mark everything as inline



More information about the Gcc-bugs mailing list