Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp689409pxb; Thu, 12 Nov 2020 13:53:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyydBQIfDg+9kEQTeNvb1DZV8ney5t5S6Eeg3r7tg2qwovEQJQhp0rexW0TDdTWLP5Gz7v4 X-Received: by 2002:a17:906:3547:: with SMTP id s7mr1400553eja.70.1605217998416; Thu, 12 Nov 2020 13:53:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605217998; cv=none; d=google.com; s=arc-20160816; b=aZBJe2JCwPpFTmM+zezJFCU2SqwqfWGMV734G6Py0+uQAPilVIR29gbnr749CexnR9 yHz5ur982iXAw5IKCHb3ueo4/DJ8gPoZ/GWOHDTAHCxwWwaAhA/oZMl5Is3yqiVeduhV Mw2djTmFtm5mifHIdqjXIpQyE00AaBmlyygCn5dVEu4ylsstJQ5e/MqDyurTcilAXILV 8LyWTU2UJXYBAgRQDawqLDqt534VOYqTG6ILIJEpzbwBwR+J//1zVNikKtxPwJU0y5cx n31sBLlsvlkSU7L1ypFh+oMN/oqMk1wwKYNcwwFI5dFV/RDbFkNDRCNdRTX/8lQptCpB m/DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:sender:dkim-signature; bh=z3CD5S2CALksgVm8ns6TDId0Or2oDJ7UUxweYeXuETU=; b=mtnzuPaXoxnbrOvx4CyfkBc7soWI4EtYu7D3IfJavhveYnWP7Xt9c+x4BZmu444Sdr ze+LsUU2eAaK+7mK4LcaZEwcBTH5WmUMYHqNpKsvuw38H27LDLd9qX9AkE304vWfMhIp /EX207ErXjQlFM9eCIGK46wKuaqtSixongKkAJ8ElWmXTWAi/+tJvC+PNRhD5UuCZqRl SlmPhE5OQf+tDSb9aS9UR87QjvsLQAlWW+ZiETlVR8pHWrKs27ls+4UTnDGrc8pRwxx1 spf17vsrqcl6gScJ0MaATDCG7rPImzBluyJ4eSqnPaiWwMrqb39hEhuG0fcDgu/LMvsO liFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U390PW+S; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gn19si4798991ejc.336.2020.11.12.13.52.55; Thu, 12 Nov 2020 13:53:18 -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=@gmail.com header.s=20161025 header.b=U390PW+S; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727270AbgKLVuh (ORCPT + 99 others); Thu, 12 Nov 2020 16:50:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727175AbgKLVuh (ORCPT ); Thu, 12 Nov 2020 16:50:37 -0500 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4540AC0613D4 for ; Thu, 12 Nov 2020 13:50:37 -0800 (PST) Received: by mail-qk1-x744.google.com with SMTP id q5so6966545qkc.12 for ; Thu, 12 Nov 2020 13:50:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=z3CD5S2CALksgVm8ns6TDId0Or2oDJ7UUxweYeXuETU=; b=U390PW+SMYc2n3VhGqRdsw6ONn1j5/PFCvEM+sQVMn87P/jOlwMimILpr8rOajdlyi 8ZHLfqbRDeyFh6wvw+1TeVFDhfH2xbTfvCtZLSIIR5MnX//LoWO3SShkhTCUoBDKAXhN 0v2Jdppw/64njlOh9pBLHiIpRQEWmT7nsTQlJ7trrTh43WqRbpWjJZOAxQbv51b6G8nw sDMGA3HWPsVEMphn7HzKe25+RJfep7tnTQehFspm0Jv44wIP9rPdq/Zd7Ua+lIiYFPbt 6NQNtxAHfbzZ2imANyZP1v3HOmKbb9OQfImCYvoi4V12Wd8TziesokuvAn5GbLw4pm2g c7yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=z3CD5S2CALksgVm8ns6TDId0Or2oDJ7UUxweYeXuETU=; b=IzErNDyWUCWxLmGIEOHKpjqr7mNjRVmN/l3fOHNUvnz2RT4oJrLYX4L4jUSkhgDWtH p8XFLBGDWdR/VhG0aNSQzJs5rQt+VSyuHzq6QRC7fyp0yOSyJjQpD3CgwXDcIizk6bF9 iThoqBfcJIb3ePEIFmAK7D3Ip7ox4W2WFOdO39qtyMJ1X4B2X7qLPJGUAvLeG/37AKdE W608B+HSlZ5gN/6oi5RXYWzefy6cdZSAJhJSV3HGNmmYP08cGdUU/rEbL0bGITHKy/Md Y5+c1xIWus6mcB88Ct/rY1cUUvy+CkR0Q+Nf5GVfns9g3NDFmNueynS8G24YOu4W9E8H /kCQ== X-Gm-Message-State: AOAM533aDXEGRqBQUzRqKMxG4rqjmXkfP92IJqXbvnTlj4C81PT7mQtJ Vp0g8b/Gg5gR9c0bGVCVHfI= X-Received: by 2002:a37:8c43:: with SMTP id o64mr2049159qkd.176.1605217836431; Thu, 12 Nov 2020 13:50:36 -0800 (PST) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id c79sm5529081qke.69.2020.11.12.13.50.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 13:50:35 -0800 (PST) Sender: Arvind Sankar From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Thu, 12 Nov 2020 16:50:33 -0500 To: Adrian Ratiu Cc: Nick Desaulniers , Nathan Chancellor , Arnd Bergmann , Linux ARM , clang-built-linux , Russell King , LKML , Collabora Kernel ML , Ard Biesheuvel Subject: Re: [PATCH 2/2] arm: lib: xor-neon: disable clang vectorization Message-ID: <20201112215033.GA438824@rani.riverdale.lan> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87lff8gesg.fsf@collabora.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.