https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95717
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:f3a27a610b0eb9a7ea76f61b4fecf7e66e86a3e1 commit r10-8359-gf3a27a610b0eb9a7ea76f61b4fecf7e66e86a3e1 Author: Richard Biener <rguent...@suse.de> Date: Wed Jun 17 14:57:59 2020 +0200 tree-optimization/95717 - fix SSA update for vectorizer epilogue This fixes yet another issue with the custom SSA updating in the vectorizer when we copy from the non-if-converted loop. We must not mess with current defs before we updated the BB copies. 2020-06-17 Richard Biener <rguent...@suse.de> PR tree-optimization/95717 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Move BB SSA updating before exit/latch PHI current def copying. * g++.dg/torture/pr95717.C: New testcase. (cherry picked from commit d0909f5858ad81e6d8b73fa6193be19cb5e6ed7b)