aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-07-04 10:37:53 +0200
committerRichard Biener <rguenther@suse.de>2023-07-04 12:32:25 +0200
commit6eea7eaf11e2b04670c4bb75f48600747dd76768 (patch)
tree538a6ce06340960740e54718b6db351421c63d26
parentd4800a23d8d14213f9e461cd47e97a5c7271b1a9 (diff)
downloadgcc-6eea7eaf11e2b04670c4bb75f48600747dd76768.zip
gcc-6eea7eaf11e2b04670c4bb75f48600747dd76768.tar.gz
gcc-6eea7eaf11e2b04670c4bb75f48600747dd76768.tar.bz2
Remove unnecessary check on scalar_niter == 0
The following removes an unnecessary check. * tree-vect-loop.cc (vect_analyze_loop_costing): Remove check guarding scalar_niter underflow.
-rw-r--r--gcc/tree-vect-loop.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc
index e504645..3b46c58 100644
--- a/gcc/tree-vect-loop.cc
+++ b/gcc/tree-vect-loop.cc
@@ -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;
- }
}
}