From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13967 invoked by alias); 2 Jan 2008 19:41:10 -0000 Received: (qmail 13958 invoked by uid 22791); 2 Jan 2008 19:41:09 -0000 X-Spam-Check-By: sourceware.org Received: from server1.sourceware.org (HELO localhost.localdomain) (127.0.0.1) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 02 Jan 2008 19:36:15 +0000 Subject: [Bug fortran/31067] MINLOC should sometimes be inlined (gas_dyn is sooooo sloooow) In-Reply-To: X-Mailer: Mail::Mailer[v1.74] Net::SMTP[v2.29] X-Bugzilla-Reason: CC References: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pault at gcc dot gnu dot org" 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 Date: Wed, 02 Jan 2008 21:03:00 -0000 X-SW-Source: 2008-01/txt/msg00104.txt.bz2 Message-ID: <20080102210300.u_vqafJ0vyaY4OjCd-0WKKSwB4ShfOwoJnQahbJkln4@z> ------- Comment #20 from pault at gcc dot gnu dot org 2008-01-02 19:30 ------- (In reply to comment #19) > gfortran does inline most array intrinsics, but only if the result is a scalar. > For most array intrinsics this isn't that much of a problem since usually one > uses the variant that returns a scalar, but MINLOC is different in that usually > one wants to use the version that returns an array. If one implements this I > guess it would be straightforward to replicate the solution to many other array > intrinsics as well. > Janne, In contemplating what to do with gfortran in the New Year, I have been mulling over in-lining of array intrinsics; MATMUL is one distinctly possible one, as are MINLOC and MAXLOC. Cheers Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31067