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: unassig...@gcc.gnu.org ReportedBy: tkoe...@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