https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116425
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Target| |riscv --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I think both passes are valid placed to improve this. The vector constructor could be from the original source as well. Note vector lowering already tries to compute a "compute mode", but not in all lowering paths IIRC and possibly not aware of VLA vectors or "LMUL".