From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id D7EFF3858416 for ; Thu, 21 Oct 2021 23:11:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D7EFF3858416 Received: by mail-pf1-x433.google.com with SMTP id d9so2003988pfl.6 for ; Thu, 21 Oct 2021 16:11:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pX5R8837baDrA4WpsPGczUoM3PFwkdF3q1GH/5UbsK4=; b=IyajtwAM6Thi5SjAbvNDx/IjB+lxtyOgFrYmZbhkDtfmgD8EBJLvigHLw7PEkm+mjA GCinirgiSt386RduDf34sORi3h44rNGVmaL+On27Dwyk0c+mg2SnoICGgiygq/FC8fWb 7hAZuzkeDhegHMDGMOr0Crp/OHJp3+sOZp/s6p+TFhI39le0r/AX3ihio/OF2z4wUnYC QV3+KbqJsXr3x3uSBXxGg3nWUtQdZAq2+fRynQUyGq3LQVH80VWuzaEf56kAaJEpGlXc 4+/ydFO5JnWfPmloEXpUWJlc4ikjAAHjIFA1vDUn+eUBL7HFRJGWNnJ2e3WSjE9mPNZ/ SWqg== X-Gm-Message-State: AOAM530HsV/rJvM6xM/jNg5qZC6yKudR6+IRq2+4DKnsyGPCoz+y3pl4 xs9lzz9F1MaH96FMrJDO5Zsv1z/lCgYTQfGOlCI= X-Google-Smtp-Source: ABdhPJzIWnEvwvX9RhC2zaO6YCFF9U4D5UICNhxsowkNH9is0u0O0k4ja/I3DynP6ITkVeBw6X98jsbLWJFdNMKtMh8= X-Received: by 2002:a63:b51d:: with SMTP id y29mr6707710pge.75.1634857872992; Thu, 21 Oct 2021 16:11:12 -0700 (PDT) MIME-Version: 1.0 References: <20210927203827.2852935-1-goldstein.w.n@gmail.com> <20211021223850.415607-1-goldstein.w.n@gmail.com> <20211021223850.415607-2-goldstein.w.n@gmail.com> In-Reply-To: From: "H.J. Lu" Date: Thu, 21 Oct 2021 16:10:35 -0700 Message-ID: Subject: Re: [PATCH v8 2/3] String: Add hidden defs for __memcmpeq() to enable internal usage To: Joseph Myers Cc: Noah Goldstein , GNU C Library Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3023.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2021 23:11:15 -0000 On Thu, Oct 21, 2021 at 4:08 PM Joseph Myers wrote: > > On Thu, 21 Oct 2021, H.J. Lu via Libc-alpha wrote: > > > There are many memcmp calls in ld.so. I think most, if not all, of them > > can be changed to __memcmpeq. Can you make another patch to do > > that? > > Rather than doing that micro-optimization in the glibc sources, I think > it's better to add the relevant feature to GCC and let glibc get optimized > when built with a new-enough compiler. > Why not? We don't know when __memcmpeq will be supported by GCC used by glibc developers. If we don't even use it in glibc, why bother? -- H.J.