Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1965614iob; Sun, 15 May 2022 04:12:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ21VIVRNm/IDj+hgIPXxqEiet3uPxFpI0YYH49OFMuk+tWnshQ2wHrrlTZzKMyyklawnR X-Received: by 2002:a17:907:728d:b0:6f4:5a83:a616 with SMTP id dt13-20020a170907728d00b006f45a83a616mr11054452ejc.297.1652613124648; Sun, 15 May 2022 04:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652613124; cv=none; d=google.com; s=arc-20160816; b=B8qvx33oYaHCGMqoMWUc7w6jG5+pJfelG2CZaeCvD+pqXNOLwYV27jn26jOFx8CFdk O+T0t4F13XaPx7b6JeVMdOB14WS6hCTcn8scXPJqj3dMNocBNDXMNdb/JRNdusW/UOH4 0OztUJBzwE8GL9okNj583a+fmdnYDv+0oxqaPOfAQH5xDxC0qrfL/u2tkIKyeLgKzEuA 9dycMp5gUIhDUBrr3ekNiE0nvk3C9wVrzUFTNAFGdYESUmve78i50SemwKmu1sQ9t1x3 P9UWYG9kr+lDIAFjQoDfKTfajlCWRrbj2H7V+YsZk0ce1kx85yBAHDIDtTq46gnADclq Ilqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=2Sz9FVytuBMznQCeQyXqRBsj2e7bv++RBC9C4z+JHSk=; b=ZdN0EnuMemMtNxgALyLN2vmC3VhS7Jp8e+6PCQsY+kbLaV3G4Y0jeaoCrYJ7QoiHqs +B1ilLaTWofm635UmWRlnDpC/FCE7eAaYf2YuQMifMQWeFqYwuR1E6nANG0KxvvEdSFT Te2DpVtSCjG384UnntTar7fJsLeNmSiPJ/SRaISH37fIdt3KFoNYDB/ycsE/cmFirk3J y/XA2u4EFsAd7hs3Wahb5I+TV1oFv2usXwjBhkNDpFML8AY9Ur6+F5K58WcEcMSCIwqY mgKvZCRDempbRnptr8f1UysbxQcZft0Oov4e7vmMZQ4pMbPGIYy2hNh3scNzaxHmsSVn 0xUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f24-20020a05640214d800b0042619bebf49si5652331edx.470.2022.05.15.04.11.29; Sun, 15 May 2022 04:12:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236360AbiEOKbf (ORCPT + 99 others); Sun, 15 May 2022 06:31:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236209AbiEOKbH (ORCPT ); Sun, 15 May 2022 06:31:07 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBEF19592 for ; Sun, 15 May 2022 03:31:06 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4L1JZK1VHPz4xZ2; Sun, 15 May 2022 20:31:05 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: References: Subject: Re: [PATCH] powerpc: Reduce csum_add() complexity for PPC64 Message-Id: <165261052038.1047019.18164887384692464073.b4-ty@ellerman.id.au> Date: Sun, 15 May 2022 20:28:40 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 12 Feb 2022 08:36:17 +0100, Christophe Leroy wrote: > PPC64 does everything in C, gcc is able to skip calculation > when one of the operands in zero. > > Move the constant folding in PPC32 part. > > This helps GCC and reduces ppc64_defconfig by 170 bytes. > > [...] Applied to powerpc/next. [1/1] powerpc: Reduce csum_add() complexity for PPC64 https://git.kernel.org/powerpc/c/f206fdd9d41bf7deb96219b8ca3499a5abd79b83 cheers