Fix typo in peeling for gap compute of get_group_load_store_type

When fixing a maybe-uninit diagnostic in r15-1309-ge575b5c56137b1 by
re-computing remain I failed to add braces, effectively now computing
garbage.

	* tree-vect-stmts.cc (get_group_load_store_type): Add missing
	braces.
This commit is contained in:
Richard Biener 2024-11-14 13:28:48 +01:00 committed by Richard Biener
parent 01413da3b0
commit faf594ce21

View file

@ -2195,7 +2195,7 @@ get_group_load_store_type (vec_info *vinfo, stmt_vec_info stmt_info,
unsigned HOST_WIDE_INT cnunits, cvf, cremain, cpart_size;
if (!nunits.is_constant (&cnunits)
|| !LOOP_VINFO_VECT_FACTOR (loop_vinfo).is_constant (&cvf)
|| (((cremain = group_size * cvf - gap % cnunits), true)
|| (((cremain = (group_size * cvf - gap) % cnunits), true)
&& ((cpart_size = (1 << ceil_log2 (cremain))) != cnunits)
&& (cremain + group_size < cpart_size
|| vector_vector_composition_type