gcc.dg/vect/vect-live-2.c shows it's important to handle live but
otherwise unused pattern stmts.
* tree-vect-slp.cc (vect_analyze_slp): Lookup patterns when
discovering from only-live roots.
if (TREE_CODE (def) == SSA_NAME
&& !virtual_operand_p (def)
&& (stmt_info = loop_vinfo->lookup_def (def))
+ && ((stmt_info = vect_stmt_to_vectorize (stmt_info)), true)
&& STMT_VINFO_RELEVANT (stmt_info) == vect_used_only_live
&& STMT_VINFO_LIVE_P (stmt_info)
&& (STMT_VINFO_DEF_TYPE (stmt_info) == vect_induction_def