From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by sourceware.org (Postfix) with ESMTPS id 692F33858D33 for ; Thu, 9 Mar 2023 08:55:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 692F33858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-x130.google.com with SMTP id m6so1355048lfq.5 for ; Thu, 09 Mar 2023 00:55:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678352156; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=z7NGDfzTW3xX1bIfc0Lq5el//x6GUkqVwM4WAYZ0P7Q=; b=SupNhGRXRD5DABQ+BFTodf6SbavikVbnJPLwFZuEM1ShsBX8slUUb0GYbz93a7G3Mq HzflYFOXokGAiaFJ/Tr3A5G+m6fHJpHhA2pE9wOEsq8ncUiP9b887GhoIVSv04uf2GSs RhBDYiHCA/HIu2OyY0yxpdi6F9FJNxzTWDjwJPRTCDToY+hxKluRSnbRhSOmDGl2Az1N vZgZJ7+zT9VccHsySwrE3sstgWicgSzNL8/ekehYB3hG8qMZBBXbYpI9eg20YLD6gnjq rzJlMnTYi0EVndYy4i3t/TM/7mbP/sL9eGEePozsHtTf5A0V5ppgtC8nbVMqyGA+eJ2I wIhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678352156; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z7NGDfzTW3xX1bIfc0Lq5el//x6GUkqVwM4WAYZ0P7Q=; b=aoK7JwITUwPGrKTvhC6coD0iKInC2d3CkXvRgtLhFDjZFqlnNNQGAl1E0cCWsD91bs P4NyEv4SE1xxZWmOKjIuNdI6OYi/15bGrn2E6hDYC8Igy8CrgzHHuvkORCt30BkoWhyV tKZvUvOC3hEmyBZ6PnDuRo6ziRRB6zJFwI2523KBZYSPkzv0jKyc0dJGK8U+1iTCCAo8 VCGlF8umN2g8Nnmr56jCu8iY2Gy/YYTTT/nXICdC2yyQYNt8PdFlqVmsfFzEH/t/xIQm zhg+yFNYhEzbbGjzGLEXOdsIR9yo+rpYSAqTIZrPTrQr0zWdnxqiwgljctypzPMDJZNZ 6mPg== X-Gm-Message-State: AO0yUKUOR/+XQvou1v7ZEhNpMrdkp2FHhecLfODPreU/Aj67ROHFxfTg gcG6IYgsOFoZLqG3vMfzYJucH0eKp+dDwyKY8w0= X-Google-Smtp-Source: AK7set9/nrMZHdq+2aBUihGsJjgRMB/jKUf8gY4cFJ/3P1dd/aAIzPwk2ePRWmZNizAzzBBxILoEXXlHV7o8joxdz+c= X-Received: by 2002:ac2:4c2e:0:b0:4dd:a025:d8c with SMTP id u14-20020ac24c2e000000b004dda0250d8cmr6745155lfq.5.1678352156509; Thu, 09 Mar 2023 00:55:56 -0800 (PST) MIME-Version: 1.0 References: <20230309075710.2236986-1-collison@rivosinc.com> In-Reply-To: <20230309075710.2236986-1-collison@rivosinc.com> From: Richard Biener Date: Thu, 9 Mar 2023 09:55:42 +0100 Message-ID: Subject: Re: [PATCH v2] vect: Check that vector factor is a compile-time constant To: Michael Collison Cc: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, Mar 9, 2023 at 8:57=E2=80=AFAM Michael Collison wrote: OK. Thanks, Richard. > 2023-03-05 Michael Collison > > * tree-vect-loop-manip.cc (vect_do_peeling): Use > result of constant_lower_bound instead of vf in case > vf is not a compile time constant. > --- > 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 nit= ers, 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); > } > -- > 2.34.1 >