From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17426 invoked by alias); 3 Oct 2014 19:56:28 -0000 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 Received: (qmail 17377 invoked by uid 48); 3 Oct 2014 19:56:23 -0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/37131] inline matmul for small matrix sizes Date: Fri, 03 Oct 2014 19:56: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-Version: 4.4.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mikael 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-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg00244.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37131 --- Comment #16 from Mikael Morin --- (In reply to Thomas Koenig from comment #15) > Hi Mikael, > > do you think you can do this using the scalarizer? > Not in its current state. And as I don't see the scalarizer being changed soon to allow it, you're better off trying with the frontend optimization framework. I thought inlining sum with the scalarizer would make inlining matmul easy because it would allow the scalarizer to support arrays as result of nested reductions. But matmul is different from sum, so it's actually not that easy.