This avoids looking at STMT_VINFO_LIVE_P when vectorizing BBs.
2020-09-09 Richard Biener <rguenther@suse.de>
PR tree-optimization/96978
* tree-vect-stmts.c (vectorizable_condition): Do not
look at STMT_VINFO_LIVE_P for BB vectorization.
(vectorizable_comparison): Likewise.
return false;
/* FORNOW: only supported as part of a reduction. */
- if (STMT_VINFO_LIVE_P (stmt_info))
+ if (loop_vinfo && STMT_VINFO_LIVE_P (stmt_info))
{
if (dump_enabled_p ())
dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
if (STMT_VINFO_DEF_TYPE (stmt_info) != vect_internal_def)
return false;
- if (STMT_VINFO_LIVE_P (stmt_info))
+ if (loop_vinfo && STMT_VINFO_LIVE_P (stmt_info))
{
if (dump_enabled_p ())
dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,