public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6570] [PATCH v2] vect: Check that vector factor is a compile-time constant
@ 2023-03-10  7:20 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-03-10  7:20 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2dc73876fc9a0df4c3af2766319402d14d39db33

commit r13-6570-g2dc73876fc9a0df4c3af2766319402d14d39db33
Author: Michael Collison <collison@rivosinc.com>
Date:   Fri Mar 10 08:19:04 2023 +0100

    [PATCH v2] vect: Check that vector factor is a compile-time constant
    
            * tree-vect-loop-manip.cc (vect_do_peeling): Use
            result of constant_lower_bound instead of vf for the lower
            bound of the epilog loop trip count.

Diff:
---
 gcc/tree-vect-loop-manip.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/tree-vect-loop-manip.cc b/gcc/tree-vect-loop-manip.cc
index d88edafa018..f60fa50e8f4 100644
--- a/gcc/tree-vect-loop-manip.cc
+++ b/gcc/tree-vect-loop-manip.cc
@@ -2921,7 +2921,7 @@ vect_do_peeling (loop_vec_info loop_vinfo, tree niters, tree nitersm1,
       if (new_var_p)
 	{
 	  value_range vr (type,
-			  wi::to_wide (build_int_cst (type, vf)),
+			  wi::to_wide (build_int_cst (type, lowest_vf)),
 			  wi::to_wide (TYPE_MAX_VALUE (type)));
 	  set_range_info (niters, vr);
 	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-10  7:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-10  7:20 [gcc r13-6570] [PATCH v2] vect: Check that vector factor is a compile-time constant 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).