From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id B15C34AE93 for ; Wed, 21 May 2025 06:18:27 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 30F1968CB82; Wed, 21 May 2025 09:18:23 +0300 (EEST) Received: from cstnet.cn (smtp81.cstnet.cn [159.226.251.81]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id BA1AE68C976 for ; Wed, 21 May 2025 09:18:15 +0300 (EEST) Received: from localhost.localdomain (unknown [210.73.43.2]) by APP-03 (Coremail) with SMTP id rQCowACHmvUkcC1oQCzrAQ--.42508S2; Wed, 21 May 2025 14:18:12 +0800 (CST) From: Jiawei To: ffmpeg-devel@ffmpeg.org Date: Wed, 21 May 2025 14:17:50 +0800 Message-ID: <20250521061750.54882-1-jiawei@iscas.ac.cn> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CM-TRANSID: rQCowACHmvUkcC1oQCzrAQ--.42508S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Aw4rZFW3KF15XFW8Aw1DJrb_yoW8Xr1xpa 97JFyruFs5Gw1rKFsxta1kKF4UW39Ygay7JF42gw17uF1jkF1vgFyS93W5Z3WxCwnxC3sI 9F13KF9rG3Z5AFUanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j 6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr 1j6F4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv 7VC0I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r 1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCY1x0262kKe7AK xVWUtVW8ZwCY02Avz4vE14v_GF1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr 0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY 17CE14v26r1Y6r17MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcV C0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY 6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvj DU0xZFpf9x0JU-XocUUUUU= X-Originating-IP: [210.73.43.2] X-CM-SenderInfo: 5mld4v3l6l2u1dvotugofq/1tbiBgoJAGgtO7zI2QAAsW Subject: [FFmpeg-devel] gcc: Remove auto-vectorization limitation. 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 Cc: Jiawei Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: This patch modifies the FFmpeg build system to remove the explicit disabling of GCC's auto-vectorization feature. Modern GCC versions (>= 10.0) have demonstrated stable auto-vectorization capabilities through extensive optimizations in loop analysis and SIMD code generation. The explicit -fno-tree-vectorize flag originally added in commit 973859f (2009) to workaround early GCC vectorization instability is no longer necessary. Key improvements justifying this change: 1. Enhanced heuristics for loop vectorization cost models 2. Mature handling of alignment and memory access patterns 3. Robust fallback mechanisms for unsupported architectures This change allows FFmpeg to benefit from automated SIMD optimizations when built with -O3 optimization level, particularly improving performance on x86_64 (AVX), ARM64 (SVE) and RISC-V(RVV) architectures. [1] https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/973859f5230e77beea7bb59dc081870689d6d191 --- configure | 1 - 1 file changed, 1 deletion(-) diff --git a/configure b/configure index 3730b0524c..b9e95ce4ec 100755 --- a/configure +++ b/configure @@ -7656,7 +7656,6 @@ if enabled icc; then disable aligned_stack fi elif enabled gcc; then - check_optflags -fno-tree-vectorize check_cflags -Werror=format-security check_cflags -Werror=implicit-function-declaration check_cflags -Werror=missing-prototypes -- 2.43.0 _______________________________________________ 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".