]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove unnecessary check on scalar_niter == 0
authorRichard Biener <rguenther@suse.de>
Tue, 4 Jul 2023 08:37:53 +0000 (10:37 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 4 Jul 2023 10:32:25 +0000 (12:32 +0200)
The following removes an unnecessary check.

* tree-vect-loop.cc (vect_analyze_loop_costing): Remove
check guarding scalar_niter underflow.

gcc/tree-vect-loop.cc

index e504645f1dfa2fb178b5faf6cbda293a7a274d50..3b46c58a8d8a1a5e69e6b37b90b7c34fa0ae7f15 100644 (file)
@@ -2180,13 +2180,6 @@ vect_analyze_loop_costing (loop_vec_info loop_vinfo,
                = LOOP_VINFO_PEELING_FOR_GAPS (orig_loop_vinfo) ? 1 : 0;
              scalar_niters = ((scalar_niters - gap - prolog_peeling)
                               % lowest_vf + gap);
-             if (scalar_niters == 0)
-               {
-                 if (dump_enabled_p ())
-                   dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
-                                    "not vectorized: loop never entered\n");
-                 return 0;
-               }
            }
        }