From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 12489464EF for ; Mon, 18 Sep 2023 15:37:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2ADEA68C841; Mon, 18 Sep 2023 18:37:31 +0300 (EEST) Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C39C66805B4 for ; Mon, 18 Sep 2023 18:37:24 +0300 (EEST) Received: by mail-oi1-f179.google.com with SMTP id 5614622812f47-3add255c88aso576152b6e.1 for ; Mon, 18 Sep 2023 08:37:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695051443; x=1695656243; darn=ffmpeg.org; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=ZYGYBqIL01iH3KpMmww+emoTmI6VPkS10tuyDZQMlmw=; b=Cv6zC17AUSZzDWP0BNXZTp83R4u2EyqSMuKfO5TOHqzIZlh/YpHHBz0/XTvBILmw7L NBQ0nxCzu5jllkCd5sz0IIhnPQd3TNz3hGRNZeO/PH3SEfl+eN1UOWvlWnIhhfIqTLMx HJ+7WHTAD80yTAlM+ZStWbktxlQVOHv5XBD2InwdJjSYDoMB7opFHf8rfOif9lrL62Ic rEH4yWlc6uXZs9ZJDBilWJjFTwZ4Hde05vggLTd1klZpXGivCaqUH3B392DGrgRfrctu AZChI5dcDbgvzXbkfVZRK6MWV0Z5bmpzlhqlxCZI/OD9m1N7f+QKwEUcpX/LGJh6b/bM aeMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695051443; x=1695656243; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZYGYBqIL01iH3KpMmww+emoTmI6VPkS10tuyDZQMlmw=; b=q3g1fGBz2Il59nJ8Elp7JEqYRxz5uORMaWG2qISxfyUNabXH06VmC7IS0a+g3KZQbj 5sWTu3vL8TbuckO0Ojaqr2nWSrDmfesqD5YYPGQsrOrKQDArsBH+k4pmns6p61NSM7xn lsurOvE4E/t0klZ78emqxcE+Kyo22Iuct7TUaBvCbNJ9AJzBFGtSonABSvZuZw7IyaO5 enVmYWzagw4kUVREN9UZRdaNmMr/KgmKhsoJLoUgKyYaKUTXmyFKMsUJGYEhp1j7r472 RR39VumZZEMcxIDQV5RaC8QQkkKcGpQm/Bxgeb4LckfrC12+8BtRS/lnL51gfwCTUOVD iZFg== X-Gm-Message-State: AOJu0YyrqX2Kk68mLWVfuDDmobvCB5DnSKCQD9jr4CVY0Yn0BGfChVY1 p5T3PII1/IxWXxP/3a+lz31Wi2HlYlI= X-Google-Smtp-Source: AGHT+IEhdXk+/7XE1iU1xZiNA2BazdOAiXesN0I9IE98WOrTvt7bh2S+msmDuOPeITThRtXZZl8sJA== X-Received: by 2002:a05:6808:1586:b0:3a3:6742:35d5 with SMTP id t6-20020a056808158600b003a3674235d5mr7476686oiw.26.1695051442796; Mon, 18 Sep 2023 08:37:22 -0700 (PDT) Received: from [192.168.0.10] (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id l7-20020a544107000000b003a88f5ebfeesm4096897oic.42.2023.09.18.08.37.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Sep 2023 08:37:22 -0700 (PDT) Message-ID: <07709166-c399-b8e4-10f6-27e31a4b78c7@gmail.com> Date: Mon, 18 Sep 2023 12:37:18 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 From: James Almer To: ffmpeg-devel@ffmpeg.org References: <20230917184915.16678-1-jamrial@gmail.com> Content-Language: en-US In-Reply-To: <20230917184915.16678-1-jamrial@gmail.com> Subject: Re: [FFmpeg-devel] [PATCH] configure: rework parsing --cpu arguments to support all features unless blacklisted X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 9/17/2023 3:49 PM, James Almer wrote: > Keeping an ever growing list of CPUs just to pass -march to the compiler and > enable fast_cmov is a waste of time. Every CPU we know has limitations is > already handled here, so just fallback to enabling everything when a passed in > argument is not covered by those. > > This will enable optimizations for CPU architectures released in the past 7 or > so years with supported GCC and clang compilers when using them as argument in > configure, instead of silently ignoring them. > > Signed-off-by: James Almer > --- > configure | 14 ++++++-------- > 1 file changed, 6 insertions(+), 8 deletions(-) > > diff --git a/configure b/configure > index bd7f7697c8..27602c8e14 100755 > --- a/configure > +++ b/configure > @@ -5445,20 +5445,18 @@ elif enabled x86; then > cpuflags="-march=$cpu" > disable i686 > ;; > - # targets that do support nopl and conditional mov (cmov) > - i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64*|k8*|opteron*|athlon-fx\ > - |core*|atom|bonnell|nehalem|westmere|silvermont|sandybridge|ivybridge|haswell|broadwell|skylake*|knl\ > - |amdfam10|barcelona|b[dt]ver*|znver*) > - cpuflags="-march=$cpu" > - enable i686 > - enable fast_cmov > - ;; > # targets that do support conditional mov but on which it's slow > pentium4|pentium4m|prescott|nocona) > cpuflags="-march=$cpu" > enable i686 > disable fast_cmov > ;; > + # everything else should support nopl and conditional mov (cmov) > + *) > + cpuflags="-march=$cpu" > + enable i686 > + enable fast_cmov > + ;; > esac > > fi Will apply. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".