From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87779 invoked by alias); 18 Jan 2016 19:56:03 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 87760 invoked by uid 89); 18 Jan 2016 19:56:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=HTo:U*tkoenig, spin, Netherlands, netherlands X-Spam-User: qpsmtpd, 2 recipients X-HELO: moene.org Received: from moene.org (HELO moene.org) (80.101.130.238) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 18 Jan 2016 19:56:01 +0000 Received: from [::1] (helo=moene.org) by moene.org with esmtp (Exim 4.86) (envelope-from ) id 1aLFu8-0000fO-7V; Mon, 18 Jan 2016 20:55:56 +0100 Subject: Re: [patch, fortran] Inline MATMUL(A,TRANSPOSE(B)), PR 66094 To: Thomas Koenig , "fortran@gcc.gnu.org" , gcc-patches References: <569B8CAF.8020207@netcologne.de> From: Toon Moene Message-ID: <569D434C.7050404@moene.org> Date: Mon, 18 Jan 2016 19:56:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <569B8CAF.8020207@netcologne.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00059.txt.bz2 On 01/17/2016 01:44 PM, Thomas Koenig wrote: > So... comments? Toon, would this help you? Could yo maybe give this > a spin? Thanks, the nightly test at my home computer will build with your patch. > 2016-01-17 Thomas Koenig > > PR fortran/66094 > * frontend-passes.c (enum matrix_case): Add case A2B2T for > MATMUL(A,TRANSPoSE(B)) where A and B are rank 2. > (inline_limit_check): Also add A2B2T. > (matmul_lhs_realloc): Handle A2B2T. > (check_conjg_variable): Rename to > (check_conjg_transpose_variable): and also count TRANSPOSE. > (inline_matmul_assign): Handle A2B2T. It will also perform the following tests (minus the "inline_matmul_13.f90" one, which wasn't included in the attachements :-) > 2016-01-17 Thomas Koenig > > PR fortran/66094 > * gfortran.dg/inline_matmul_13.f90: New test. > * gfortran.dg/matmul_bounds_8.f90: New test. > * gfortran.dg/matmul_bounds_9.f90: New test. > * gfortran.dg/matmul_bounds_10.f90: New test. Unfortunately, running the whole of our weather forecasting system with gcc-6 will be *a lot of work*, because I have to build all kinds of support libraries (for which I now depend on Debian Testing) by hand. But I hope just testing your examples will at least give you an idea (on -march=haswell). Thanks, and kind regards, -- Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/ Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news