vect: Remove redundant LOOP_VINFO_FULLY_MASKED_P
authorKewen Lin <linkw@linux.ibm.com>
Fri, 23 Oct 2020 03:47:39 +0000 (22:47 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Fri, 23 Oct 2020 03:47:39 +0000 (22:47 -0500)
Remove one redundant LOOP_VINFO_FULLY_MASKED_P condition check
which will be checked in vect_use_loop_mask_for_alignment_p.

gcc/ChangeLog:

* tree-vect-loop.c (vect_transform_loop): Remove the redundant
LOOP_VINFO_FULLY_MASKED_P check.

gcc/tree-vect-loop.c

index 6c29e00b280eb87d1db1ab1cc000ed0407616d28..e42f3277ed541debd9dd8b9d6cb56006486ead35 100644 (file)
@@ -9084,8 +9084,7 @@ vect_transform_loop (loop_vec_info loop_vinfo, gimple *loop_vectorized_call)
 
   split_edge (loop_preheader_edge (loop));
 
-  if (LOOP_VINFO_FULLY_MASKED_P (loop_vinfo)
-      && vect_use_loop_mask_for_alignment_p (loop_vinfo))
+  if (vect_use_loop_mask_for_alignment_p (loop_vinfo))
     /* This will deal with any possible peeling.  */
     vect_prepare_for_masked_peels (loop_vinfo);