From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 6BA41382E6B0 for ; Wed, 15 Feb 2023 23:20:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6BA41382E6B0 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676503217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qsxIIy1ntWNZCz/LMtlkDNlsgDejabnGTe73DtEFn2E=; b=D15DRxx8fawWDyE1yUaFONbnqUEFBdCNNVAh202F/urgqwnefaDvU08VspRRV8G/tP5LID SEnXfXmK/WHDZbh+sLbrQDYcXw+IWDdcw9HxuXbfvALhWxde9Ikh+55gailTWH/3f71R1P z6eCcOx+51kjpRP/WdlbELjK7V1QN6Q= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-413-hSglEHsdPdqLQ_68Cxlf1A-1; Wed, 15 Feb 2023 18:20:15 -0500 X-MC-Unique: hSglEHsdPdqLQ_68Cxlf1A-1 Received: by mail-lf1-f70.google.com with SMTP id c21-20020a056512325500b004dc4daf0396so157440lfr.6 for ; Wed, 15 Feb 2023 15:20:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qsxIIy1ntWNZCz/LMtlkDNlsgDejabnGTe73DtEFn2E=; b=AlIqy8r7T2q6ktv4BmM2xkioeFMst/ApbwWMreSi/V8/KskS/zWC15mvaEOPEQ8x9y 9jZe2xVqgROIfOAjG4DyDxV2UhbwyQvMWgCIsqIFjcvOvVlsqfPxfwbzqDC7chSpDQHw SoDqY1gMWWyWbhryJ3Y/Knk8RKAKcxffADpaKg8424eTs6ObfXUqxz48JZjWdsVZcIwg j0ElgbIgSP/jv2eRyZfbOlnVFy8jabPMyMfevrX40mjCp8/Mwqh5RoAF1B9PXGeeL2Tb Y1HdjeQPvTCr5qmF8uqoV0A98e7BVqXZwgSAOa5F28uhsfeyNcxjYwHE+OWWKLKJF9Cw PlKg== X-Gm-Message-State: AO0yUKVHbRFtkw62yPkACp+vSgjUrIe2R4s/NfjVAfl1ulRhtm9b60Ie VyOPDMjtXuPOuxEi3rluy/q5TyTJNGtF2irlpOfnHvToTfwPC8aUmwNVLjP6/f+wCMuSoVrcoPR WX48K2PRzKgL+IPubURTXpbmiTBzAyZw= X-Received: by 2002:a05:651c:168a:b0:293:2f6e:91bf with SMTP id bd10-20020a05651c168a00b002932f6e91bfmr1103309ljb.7.1676503214548; Wed, 15 Feb 2023 15:20:14 -0800 (PST) X-Google-Smtp-Source: AK7set+IQ9Yz4H5bIqJuAHfBEezk3HzWfIqYiv931xpwa4cuswAdQfdHDVag92haIe57n7BRnh1HLqkphufLJNDC8tI= X-Received: by 2002:a05:651c:168a:b0:293:2f6e:91bf with SMTP id bd10-20020a05651c168a00b002932f6e91bfmr1103302ljb.7.1676503214153; Wed, 15 Feb 2023 15:20:14 -0800 (PST) MIME-Version: 1.0 References: <3238840.44csPzL39Z@minbar> <21793652.EfDdHjke4D@minbar> In-Reply-To: <21793652.EfDdHjke4D@minbar> From: Jonathan Wakely Date: Wed, 15 Feb 2023 23:20:03 +0000 Message-ID: Subject: Re: [PATCH 1/7] libstdc++: Ensure __builtin_constant_p isn't lost on the way To: Matthias Kretz Cc: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 15 Feb 2023 at 20:49, Matthias Kretz via Libstdc++ wrote: > > > > The more expensive code path should only be taken if it can be optimized > away. > > Signed-off-by: Matthias Kretz > > libstdc++-v3/ChangeLog: > > * include/experimental/bits/simd.h > (_SimdWrapper::_M_is_constprop_none_of) > (_SimdWrapper::_M_is_constprop_all_of): Return false unless the > computed result still satisfies __builtin_constant_p. OK for trunk/12/11.