From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id DAD693857829 for ; Thu, 18 Mar 2021 14:48:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DAD693857829 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Tobias_Burnus@mentor.com IronPort-SDR: kVEubsmp4KWcJPYyH56nAsSJx0YpUPahhi3T9eVOKH4JSWkoXL9m3BowndbtzJ3f+/BBJ8E1GL 13FYl+CaUKflDAp7ILGrxFgaKetfRU4h9zevOVVU+T9496LTubx5zMrieKULDIFLkRBp6PRwXH XkUniXE1e0Jb9+Y0tpdpd/5yaUJS9IURxiPON9rpLMXT/R2z+0jzq0gFTANERYofDsZ73EcH7b Oj4jSz0pKzxbkVo79f6sinP0WRdBqjSeWwu4s3EQj9Af1oN8e/5++F2zrkyni6GSiSa4qpNqy3 kNE= X-IronPort-AV: E=Sophos;i="5.81,258,1610438400"; d="scan'208";a="59245497" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 18 Mar 2021 06:48:14 -0800 IronPort-SDR: ddwdO1CgEXCaiFi/onkm/o0kyoiX8HtZGLqZ1yx9/LWTb0r+asob8mjFv0XODuIOKwqU8QggO9 3qnll1UV6VF0FgDEQHnQO7+oe1Cq+bDM9NPaEFFZzFW3DIKsasdGHfy2bNc98pNmLRAkCF5z73 NHErPWW6ttCD7/ou+3OmWriA+3mo+moUsnV49fy7Kz3Ii9gv38QFEp6kWMhXQTAYdZGh0d99Da dOrOTt64qgZN5BTeWOaUSU4FyqeG+w6RXiqiLk+Ff5c+RF2iFg26iHefof6xUdAC6tU5AQg12T oVM= Subject: Re: MATMUL broken with frontend optimization. To: Richard Biener , Steve Kargl CC: "fortran@gcc.gnu.org" , Thomas Koenig References: <20210318074849.GA22541@troutmask.apl.washington.edu> From: Tobias Burnus Message-ID: <563cee48-fbcc-09bc-0cd1-f05082e4feb3@codesourcery.com> Date: Thu, 18 Mar 2021 15:48:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-05.mgc.mentorg.com (139.181.222.5) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Mar 2021 14:48:19 -0000 Richard, On 18.03.21 13:35, Richard Biener via Fortran wrote: > [...] > Since the libgfortran MATMUL should be vectorized > I think it's not reasonable to inline any but _very_ small > MATMUL at optimization levels that do not enable vectorization. Besides the obvious if (!flag_external_blas) which should always prevent inlining (possibly except for tiny N like N=3D1), your idea is 'if (N small || flag_tree_loop_vectorize)'? Or are you thinking of a different or additional flag_... than flag_tree_loop_vectorize for making this choice? Tobias ----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 M=C3=BCnchen R= egistergericht M=C3=BCnchen HRB 106955, Gesch=C3=A4ftsf=C3=BChrer: Thomas H= eurung, Frank Th=C3=BCrauf