https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113902
--- Comment #4 from GCC 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:aab45e2bbec340201f8faaccfa24756bc09cb7db commit r14-8953-gaab45e2bbec340201f8faaccfa24756bc09cb7db Author: Richard Biener <rguent...@suse.de> Date: Tue Feb 13 11:38:48 2024 +0100 tree-optimization/113902 - fix VUSE update in move_early_exit_stmts The following adjusts move_early_exit_stmts to track the last seen VUSE instead of getting it from the last store which could be a PHI where gimple_vuse doesn't work. PR tree-optimization/113902 * tree-vect-loop.cc (move_early_exit_stmts): Track last_seen_vuse for VUSE updating. * gcc.dg/vect/pr113902.c: New testcase.