From 3dbfb00c42ba0eecfbf0f87c6fb28ea2a7a72606 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 29 Jul 2023 11:48:34 +1000 Subject: [PATCH] pixconv: add godbolt comment for upsample code --- internal/cgen/base/pixconv-submodule-ycck.c | 4 ++++ release/c/wuffs-unsupported-snapshot.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/internal/cgen/base/pixconv-submodule-ycck.c b/internal/cgen/base/pixconv-submodule-ycck.c index d528a03f..374aacb3 100644 --- a/internal/cgen/base/pixconv-submodule-ycck.c +++ b/internal/cgen/base/pixconv-submodule-ycck.c @@ -1054,6 +1054,10 @@ wuffs_base__pixel_swizzler__swizzle_ycck( // // See commits 51bc60ef9298cb2efc1b29a9681191f66d49820d and // cd769a0cdf1b5affee13f6089b995f3d39569cb4 for benchmark numbers. + // + // See also https://godbolt.org/z/MbhbPGEz4 for Debian Bullseye's clang 11 + // versus gcc 10, where only gcc auto-vectorizes, although later clang + // versions will also auto-vectorize. #else if (wuffs_base__cpu_arch__have_x86_avx2()) { upfuncs[1][1] = diff --git a/release/c/wuffs-unsupported-snapshot.c b/release/c/wuffs-unsupported-snapshot.c index a062a4f0..ef658b32 100644 --- a/release/c/wuffs-unsupported-snapshot.c +++ b/release/c/wuffs-unsupported-snapshot.c @@ -24873,6 +24873,10 @@ wuffs_base__pixel_swizzler__swizzle_ycck( // // See commits 51bc60ef9298cb2efc1b29a9681191f66d49820d and // cd769a0cdf1b5affee13f6089b995f3d39569cb4 for benchmark numbers. + // + // See also https://godbolt.org/z/MbhbPGEz4 for Debian Bullseye's clang 11 + // versus gcc 10, where only gcc auto-vectorizes, although later clang + // versions will also auto-vectorize. #else if (wuffs_base__cpu_arch__have_x86_avx2()) { upfuncs[1][1] =