[Bug tree-optimization/123343] Loop unrolling before vectorization produces suboptimal RISC-V code

chenzhongyao.hit at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jan 6 12:50:34 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123343

--- Comment #4 from Zhongyao Chen <chenzhongyao.hit at gmail dot com> ---
Yes. Without unrolling, inner loop vectorization produces better asm. Could
.cunrolli be made vectorization-aware to avoid unrolling when beneficial? 
Once unrolled, SLP has no way to recover the loop; what we want is inner loop
vectorization only, not SLP.


More information about the Gcc-bugs mailing list