[Bug tree-optimization/117722] RISC-V: Failed to vectorize x264_pixel_sad_4x4

2024-11-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117722 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/117722] RISC-V: Failed to vectorize x264_pixel_sad_4x4

2024-11-20 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117722 --- Comment #2 from Li Pan --- Take x86_64 perf data for 625 base, x264_pixel_satd_8x4 is the hottest func. Children Self Command Shared Object Symbol + 19.26%18.96% x264_s_base.non x264_s_base.none [.] x264_pixel

[Bug tree-optimization/117722] RISC-V: Failed to vectorize x264_pixel_sad_4x4

2024-11-20 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117722 --- Comment #1 from JuzheZhong --- OK. I see we are lacking ssadd/usad pattern (SAD_EXPR): Compute the sum of absolute differences of two signed/unsigned elements. Operand 1 and operand 2 are of the same mode. Their absolute difference, which i