https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106196
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:1a6e0d8252a71c61d4dc616044fb25b5ac2cfffb commit r13-1502-g1a6e0d8252a71c61d4dc616044fb25b5ac2cfffb Author: Richard Biener <rguent...@suse.de> Date: Tue Jul 5 10:43:42 2022 +0200 tree-optimization/106196 - properly update virtual SSA for vector stores The following properly handles aggregate returns of the const marked STORE_LANES internal function to update virtual SSA form on-the-fly rather than relying on a costly virtual SSA rewrite. PR tree-optimization/106196 * tree-vect-stmts.cc (vect_finish_stmt_generation): Properly handle aggregate returns of calls for VDEF updates. * gcc.dg/torture/pr106196.c: New testcase.