Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: James Almer <jamrial@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH] configure: rework parsing --cpu arguments to support all features unless blacklisted
Date: Mon, 18 Sep 2023 12:37:18 -0300
Message-ID: <07709166-c399-b8e4-10f6-27e31a4b78c7@gmail.com> (raw)
In-Reply-To: <20230917184915.16678-1-jamrial@gmail.com>

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 <jamrial@gmail.com>
> ---
>   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".

      reply	other threads:[~2023-09-18 15:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-17 18:49 James Almer
2023-09-18 15:37 ` James Almer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=07709166-c399-b8e4-10f6-27e31a4b78c7@gmail.com \
    --to=jamrial@gmail.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git