[Bug c/112420] Unexpected vectorization for RISC-V

2023-11-07 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112420 JuzheZhong changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug c/112420] Unexpected vectorization for RISC-V

2023-11-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112420 --- Comment #4 from CVS Commits --- The master branch has been updated by Pan Li : https://gcc.gnu.org/g:beb1e2bf1bd4b7c8fc8d3dd450667344ae8e0aca commit r14-5221-gbeb1e2bf1bd4b7c8fc8d3dd450667344ae8e0aca Author: Juzhe-Zhong Date: Tue Nov 7

[Bug c/112420] Unexpected vectorization for RISC-V

2023-11-07 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112420 --- Comment #3 from rguenther at suse dot de --- On Tue, 7 Nov 2023, juzhe.zhong at rivai dot ai wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112420 > > --- Comment #2 from JuzheZhong --- > (In reply to Richard Biener from comment #1

[Bug c/112420] Unexpected vectorization for RISC-V

2023-11-07 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112420 --- Comment #2 from JuzheZhong --- (In reply to Richard Biener from comment #1) > We end up using gathers for the strided load which would be OK and avoid the > issue noted in the comment. Thus we get true from > vect_use_strided_gather_scatter

[Bug c/112420] Unexpected vectorization for RISC-V

2023-11-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112420 --- Comment #1 from Richard Biener --- We end up using gathers for the strided load which would be OK and avoid the issue noted in the comment. Thus we get true from vect_use_strided_gather_scatters_p (). That has a comment guard: /* As