diff options
author | Michael Collison <collison@rivosinc.com> | 2023-03-10 08:19:04 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-03-10 08:20:31 +0100 |
commit | 2dc73876fc9a0df4c3af2766319402d14d39db33 (patch) | |
tree | 7d67964d774a3e7c2c1776207af6d94be65b8321 /gcc | |
parent | 2fc55f51f9953b451d6d6ddfae23379001e6ac95 (diff) | |
download | gcc-2dc73876fc9a0df4c3af2766319402d14d39db33.zip gcc-2dc73876fc9a0df4c3af2766319402d14d39db33.tar.gz gcc-2dc73876fc9a0df4c3af2766319402d14d39db33.tar.bz2 |
[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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree-vect-loop-manip.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-loop-manip.cc b/gcc/tree-vect-loop-manip.cc index d88edaf..f60fa50 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); } |