https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110436
--- Comment #5 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:729aa4fa48d627c4344764676edad3b65d40a003 commit r14-2288-g729aa4fa48d627c4344764676edad3b65d40a003 Author: Richard Biener <rguent...@suse.de> Date: Tue Jul 4 09:51:05 2023 +0200 tree-optimization/110436 - bogus live/relevant for unused pattern When we compute liveness and relevantness we have to make sure to handle live but not relevant stmts in a way we can later vectorize them. When the stmt uses only operands that do not need vectorization we can just leave such stmts in place - but not in the case they are recognized as patterns. Since we don't have a way to cancel pattern recognition we have to force mark such stmts as relevant. PR tree-optimization/110436 * tree-vect-stmts.cc (vect_mark_relevant): Expand dumping, force live but not relevant pattern stmts relevant. * gcc.dg/pr110436.c: New testcase.