From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22118 invoked by alias); 17 Oct 2012 12:20:49 -0000 Received: (qmail 21944 invoked by uid 48); 17 Oct 2012 12:20:09 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/48636] Enable more inlining with -O2 and higher Date: Wed, 17 Oct 2012 12:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg01540.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48636 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #23 from Jakub Jelinek 2012-10-17 12:20:05 UTC --- If the middle-end was hinted something about the array descriptors (what fields in the struct are important and what not), perhaps IPA-CP could handle also arguments pointing to array descriptors if all callers fill the descriptor in certain important way (where important would be constant strides and/or constant start/end in some of the dimension(s)). I guess many Fortran routines are just too large for inlining, but optimizing constant strides etc. might still be useful.