]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-vect-loop: Remove useless && 1.
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 May 2026 06:36:24 +0000 (08:36 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 1 May 2026 06:36:24 +0000 (08:36 +0200)
r16-476 has replaced && slp_node with && 1 and it remained that way
until now.  THis patch just removes that.

2026-05-01  Jakub Jelinek  <jakub@redhat.com>

* tree-vect-loop.cc (vectorizable_reduction): Remove pointless
&& 1.

gcc/tree-vect-loop.cc

index 43b0606a5943205e87bfb8d3d32d540e2d69a49f..ac7e08cf205c058cda93bddd3929acb022ec60cd 100644 (file)
@@ -7476,7 +7476,6 @@ vectorizable_reduction (loop_vec_info loop_vinfo,
        || reduction_type == INTEGER_INDUC_COND_REDUCTION
        || reduction_type == CONST_COND_REDUCTION
        || reduction_type == EXTRACT_LAST_REDUCTION)
-      && 1
       && ncopies > 1)
     {
       if (dump_enabled_p ())