https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112438
Kito Cheng <kito at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kito at gcc dot gnu.org --- Comment #1 from Kito Cheng <kito at gcc dot gnu.org> --- Actually I suspect that should be a bug rather than missed-optimization, that will only trigger on some CPU implementation, because ISA spec didn't guarantee penultimate iteration will always got VLMAX for vl... https://github.com/riscv/riscv-v-spec/blob/master/v-spec.adoc#63-constraints-on-setting-vl