public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2292] Remove unnecessary check on scalar_niter == 0
@ 2023-07-04 10:36 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-07-04 10:36 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:6eea7eaf11e2b04670c4bb75f48600747dd76768
commit r14-2292-g6eea7eaf11e2b04670c4bb75f48600747dd76768
Author: Richard Biener <rguenther@suse.de>
Date: Tue Jul 4 10:37:53 2023 +0200
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.
Diff:
---
gcc/tree-vect-loop.cc | 7 -------
1 file changed, 7 deletions(-)
diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc
index e504645f1df..3b46c58a8d8 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;
- }
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-04 10:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-04 10:36 [gcc r14-2292] Remove unnecessary check on scalar_niter == 0 Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).