From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67480 invoked by alias); 20 Jun 2017 14:25:17 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 66611 invoked by uid 89); 20 Jun 2017 14:25:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*r:ip*192.168.1.11 X-Spam-User: qpsmtpd, 2 recipients X-HELO: nef2.ens.fr Received: from nef2.ens.fr (HELO nef2.ens.fr) (129.199.96.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 20 Jun 2017 14:25:14 +0000 Received: from mailhost.lps.ens.fr (tournesol.lps.ens.fr [129.199.120.1]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id v5KEPBij000185 ; Tue, 20 Jun 2017 16:25:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailhost.lps.ens.fr (Postfix) with ESMTP id 5ECAB127; Tue, 20 Jun 2017 16:25:11 +0200 (CEST) Received: from mailhost.lps.ens.fr ([127.0.0.1]) by localhost (tournesol.lps.ens.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cig4ihFihPMP; Tue, 20 Jun 2017 16:25:11 +0200 (CEST) Received: from [192.168.1.11] (log78-1-82-242-47-10.fbx.proxad.net [82.242.47.10]) by mailhost.lps.ens.fr (Postfix) with ESMTPSA id 2D85411B; Tue, 20 Jun 2017 16:25:11 +0200 (CEST) From: =?utf-8?Q?Dominique_d=27Humi=C3=A8res?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [patch, libfortran, RFC] Speed up cshift with array shift Message-Id: Date: Tue, 20 Jun 2017 14:25:00 -0000 Cc: gfortran , gcc-patches To: Thomas Koenig X-SW-Source: 2017-06/txt/msg01468.txt.bz2 Hi Thomas, On my machine I get the following timings without the patch cpu time cshift dim=1 0.490763009 cpu time do loop dim=1 5.57969809E-02 cpu time cshift dim=2 0.416319966 cpu time do loop dim=2 0.187106013 cpu time cshift dim=3 1.37362707 cpu time do loop dim=3 1.39690399 and cpu time cshift dim=1 0.166012987 cpu time do loop dim=1 5.48990071E-02 cpu time cshift dim=2 0.183587968 cpu time do loop dim=2 0.191835046 cpu time cshift dim=3 1.35024190 cpu time do loop dim=3 1.42215610 with the patch. Do you understand why cshift is so slow for dim=3? Thanks for working on this issue. Dominique PS See also pr45689.