Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp691774pxb; Thu, 12 Nov 2020 13:58:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfGMBjJrq2ste7OWYV1TDyGUvB5S0b+r3ni4awl2R3g4FanemG17WtXDrXVn+bpZ4uDPoA X-Received: by 2002:a50:930f:: with SMTP id m15mr2177461eda.112.1605218307572; Thu, 12 Nov 2020 13:58:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605218307; cv=none; d=google.com; s=arc-20160816; b=bQYI+0qxnxSxJ+q8Vs5I0aLuJ05s4VVcRePIvzGVHgTmI8JaNPYGljWEe1MY69XHjm q5jbhas8SD+ppwEjx3lRJME0sH5UG63SigNpZkOC7C0yQbBthCxc/DnR631DIL9ZyqNX sg3K9TqOnPhqN/ZBrE8ez0nlpyt/Gra7ojxeHJmOEAsaSdUUdBksyYB456whCYDEZsxU +L/gbpAl93xZBN3ZteDl2roWnQz9NQD9ndScnW4v7F9eX1jAqsVgkDzxJDbMuaJVqOu0 FZq3c20QMqnvHauBXYPR6PtkzYOvppk9VhTFdwUmg5swkd589EkMava3Qf6cAGBIDqvf i4Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zZdzQMnylo5i+1X6F6BJquvAy5ORPsCe3ydlZZ54zqU=; b=UZCvCBYwLzVSzSpE9Y9bqogIFvqelTSRuUYl6ylet7290a8ebroyqDfj7uODxNK2et 5yJ1jMy0ujv0nIlYU4wd9QyTL2AF7FHgy1aoKI+xh0hfPsU4toRYOOFXx0MmvQHmONu6 QzFlciA1Et4kMA7B82A0raRkDiA3syWEu5Q9RKXSGOtqXZNodTegj5rY1+Ulzo4iBqgI 9MNOThjIY6zC3nHeaGUow7mnpw03WokxH9OIJW+TN0sqkh2+BZjfhHbczeSmHUU3NgVY 9KegMh9/XhiQ6q2hQME0pGXjx9rgvavDml5pOS2E7qvYHrftEBY0paRiQJKyIQJRC7y/ ujwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cVFvPLpg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p3si4449245ejf.587.2020.11.12.13.58.03; Thu, 12 Nov 2020 13:58:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cVFvPLpg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727354AbgKLVzt (ORCPT + 99 others); Thu, 12 Nov 2020 16:55:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727249AbgKLVzt (ORCPT ); Thu, 12 Nov 2020 16:55:49 -0500 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BC61C0613D1 for ; Thu, 12 Nov 2020 13:55:49 -0800 (PST) Received: by mail-pf1-x443.google.com with SMTP id q10so5827387pfn.0 for ; Thu, 12 Nov 2020 13:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zZdzQMnylo5i+1X6F6BJquvAy5ORPsCe3ydlZZ54zqU=; b=cVFvPLpg/zQRZofpaZ10wTEkfw6Z1RTWB/DIOiCGLL86ijkiP7xBoDk32u5jvD0/lq ZT7fie65V62+GkE8nHfKQPfofM44KgUn8a8VQkfXev6HX6lf6w5Z0wi2gEEi0IXxbpbP snf7/8+T2MqWC+MM/QyIco2oniQI9zQpkGDDKXmjs28hhAKDHZy/wa2mUxLvu8T9chih i/Gk7m6m1rHLNCzBl9wiBEDPeBxNaKMueYkSXCt/Bkl5VrhoWOG51tYq5SRGB2VIVOAy 0dm9n9TryUwkumV3KeqibsGyne6UUm1qR+Ap8JApT7sdDTMCphQjirhoHeV5R5MhK9BP Td0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zZdzQMnylo5i+1X6F6BJquvAy5ORPsCe3ydlZZ54zqU=; b=gqBPtqsp7FzUwgJ9yEmWHe+AlFrqidFIkbWNXuuERRGp5D11m1s9eODEByra/OBDhk ltwwAly62gLquH+IfdZUPmxv8tbQaF9d/ZGerI9SpFxio3VQCDxEagz08550WkOnhpEX l0/waGoCvmRImFqRYVMu/SHssmnA0pCa8YzNrrXUoZ2m3m7FRAFRf2KAHI4IbGiU+8F6 8xKR51zWoKcnJib4LjKmb3dXNzd102HL2h6aYrwG6LHihfmQ8tvRcnSqgxRqmbmmP8En 1dztZ/1C3/h4hs6Be9UDz2bs4h/wOo442QiuDKWLNlwylQoLj/VVZ26t31AAxQsEXExo kTlg== X-Gm-Message-State: AOAM533ud1MmGQCStTp+msvi3YbiBOv2vY2Rmpw79oGj4nEW+ZHjemua QmtahJuu+TiH+/AixRgfEzNGzXmaBUafWwb3Jn7vQg== X-Received: by 2002:a62:ed0d:0:b029:18b:78d:626 with SMTP id u13-20020a62ed0d0000b029018b078d0626mr1362687pfh.15.1605218148644; Thu, 12 Nov 2020 13:55:48 -0800 (PST) MIME-Version: 1.0 References: <20201106051436.2384842-1-adrian.ratiu@collabora.com> <20201106051436.2384842-3-adrian.ratiu@collabora.com> <20201106101419.GB3811063@ubuntu-m3-large-x86> <87wnyyvh56.fsf@collabora.com> <871rh2i9xg.fsf@iwork.i-did-not-set--mail-host-address--so-tickle-me> <87sg9ghil5.fsf@collabora.com> <87lff8gesg.fsf@collabora.com> <20201112215033.GA438824@rani.riverdale.lan> In-Reply-To: <20201112215033.GA438824@rani.riverdale.lan> From: Nick Desaulniers Date: Thu, 12 Nov 2020 13:55:36 -0800 Message-ID: Subject: Re: [PATCH 2/2] arm: lib: xor-neon: disable clang vectorization To: Arvind Sankar Cc: Adrian Ratiu , Nathan Chancellor , Arnd Bergmann , Linux ARM , clang-built-linux , Russell King , LKML , Collabora Kernel ML , Ard Biesheuvel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 1:50 PM Arvind Sankar wrote: > > On Wed, Nov 11, 2020 at 04:15:59PM +0200, Adrian Ratiu wrote: > > On Tue, 10 Nov 2020, Nick Desaulniers > > wrote: > > > > > > Yes, though additionally Arvind points out that this code is > > > kind of curious if there was overlap; maybe the parameters > > > should just be restrict-qualified. > > > > > > > For now I think I'll just re-send the GCC changes and leave the > > Clang optimization as is, until we better understand what's > > happening and what's the best way to enable it. > > > > Note that the __restrict__ keywords also help GCC -- it saves it from > having to emit the non-vectorized version and switch between the two at > runtime. If we can verify it's safe, it's a good thing to add all > around. 100% agree. Even a BUILD_BUG_ON or WARN_ON in callers to validate such an invariant might be nice. -- Thanks, ~Nick Desaulniers