Avoid uninitialized diagnostic in vect_get_num_copies_for_invariant The following avoids storing garbage to *excess_elts when returning false from vect_get_num_copies_for_invariant. * tree-vect-slp.cc (vect_get_num_copies_for_invariant): Refactor to avoid accessing rem when we will return false.