From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127132 invoked by alias); 18 May 2015 06:28:27 -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 127061 invoked by uid 48); 18 May 2015 06:28:22 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/14741] graphite with loop blocking and interchanging doesn't optimize a matrix multiplication loop Date: Mon, 18 May 2015 06:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: tree-ssa X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 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: 2015-05/txt/msg01340.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14741 --- Comment #32 from Joost VandeVondele --- (In reply to Thomas Koenig from comment #31) > If the middle end is not up to this, should we be looking at doing loop > blocking in the Fortran front end, at least for the Matmul intrinsic? I think this makes sense, fixing this issue in the middle end seems to be a project on a different timescale. Ideally, matmul expands to something that generates good code even at e.g. -O2 -march=native (which would require both blocking and unrolling). At that point, the inlined code would be faster than the runtime library...for all sizes.