From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1666) id 717353858C54; Fri, 10 Mar 2023 07:20:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 717353858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678432857; bh=QKGW2iccQoLLfre7PmF15oJWfltAeJGx7BCtVpm6JGo=; h=From:To:Subject:Date:From; b=scLJS7da+K6DDNBDLzvevIv5mex2wzeGcrBGuAL3T7Ves2Vu7vKwOwwakMoB1kV5K TgnT830St6MaKsoTmLZ8B2Ae+VTvxpkTFWOSvBKhB74h/ZIikHaCLKJvDG9e2qISpm BBWv55NG3vunISYTcYluKDVowkvT4ZZqRW/49Qc0= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Biener To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6570] [PATCH v2] vect: Check that vector factor is a compile-time constant X-Act-Checkin: gcc X-Git-Author: Michael Collison X-Git-Refname: refs/heads/master X-Git-Oldrev: 2fc55f51f9953b451d6d6ddfae23379001e6ac95 X-Git-Newrev: 2dc73876fc9a0df4c3af2766319402d14d39db33 Message-Id: <20230310072057.717353858C54@sourceware.org> Date: Fri, 10 Mar 2023 07:20:57 +0000 (GMT) List-Id: https://gcc.gnu.org/g:2dc73876fc9a0df4c3af2766319402d14d39db33 commit r13-6570-g2dc73876fc9a0df4c3af2766319402d14d39db33 Author: Michael Collison 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); }