From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by sourceware.org (Postfix) with ESMTPS id E3F483857038 for ; Mon, 5 Sep 2022 08:53:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E3F483857038 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-x536.google.com with SMTP id e17so2813681edc.5 for ; Mon, 05 Sep 2022 01:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=OI0ByKPGptrsCbsgcdqSNyzmh0FOoelxYvb3+aIdUew=; b=JwAjNVswceW7d6q4xRjasi1YbFSllcUy1qur0Q/t15lH4KJ0q8t7OeeaRoHSK+RlG9 Z1/v6pj/ZuWl8zq/eHpTfMGsFo4RTo+sp1l3htqWfFaSAx+R0wzeAn7Gad5940qMU9ik abWBO7xc1QuRLZHZmkvW/k1p1hx6KObIBgSJi2bWYc+98JLZdkb1f3taXZhklXNEfjVj N7UaYPe8AbAkGBQnJlCVBYp8YGGJUgnGSIX1Fe3cnPzaLAF9K4v8nLbVqARLE4rX5bzO TPFNhc+0ewZafw1RoXsMS4Eg1nZYTqPDsCAwNHdrCdcXCfllKCFHMfJZ01zFFSG/vbSV UnGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=OI0ByKPGptrsCbsgcdqSNyzmh0FOoelxYvb3+aIdUew=; b=YWPtjnPQEBg7J9uR2BMGACeGblFIPLH7ZprUYeIYWtjtc2QtYa6CqxlMs43So13OIA MtGKibD0CQI2K6DNZu9JLUPnrlIY1/LwCO+dOMdsRl0W4DDOY4gXXxtRgkEw35KvAZrl fGn5mv8q7woY5M/F4OynUdWTPTxlRxZn3q8hwVxzcmriUA0J47rXTsRlhEAzwfjePM7B J7X3DUH/VZXo1Se8MpH0WC4/GLJqjbOJ33vSjRly8gQHqQbxJBkCptV92pBYOOXRDkcs 5HerySZEE6gxgIZYL4w+z8AJCxPwzTc+28Du5ZO/J1TuAlX0VgjFPy/OrfYT2ZjayyXY xRQQ== X-Gm-Message-State: ACgBeo3+8jBvqF+J1BxTsiuQeGPLv8Jw/giu2v9JodcXHubZ0T28HtE5 yc+6SMLd+mE7ILsW9EqE8yD9Sdc+vRQfGQylhjpOK/UU5NOKvg== X-Google-Smtp-Source: AA6agR6jLDVxtub+1hoZWlOrlf6QH7Ox5s5ZvI0YYu9deu2NoYTFerPldfnTyHhBBVqLi/AVm0SQwsEaGxoFTXhm9+I= X-Received: by 2002:a05:6402:b45:b0:44e:a071:2b3b with SMTP id bx5-20020a0564020b4500b0044ea0712b3bmr1375966edb.95.1662368024641; Mon, 05 Sep 2022 01:53:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Prathamesh Kulkarni Date: Mon, 5 Sep 2022 14:23:08 +0530 Message-ID: Subject: Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner To: gcc Patches , Richard Biener , Richard Sandiford Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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 Mon, 29 Aug 2022 at 11:38, Prathamesh Kulkarni wrote: > > On Wed, 17 Aug 2022 at 18:09, Prathamesh Kulkarni > wrote: > > > > Hi, > > The attached prototype patch extends fold_vec_perm to fold VEC_PERM_EXPR > > in VLA manner, and currently handles the following cases: > > (a) fixed len arg0, arg1 and fixed len sel. > > (b) fixed len arg0, arg1 and vla sel > > (c) vla arg0, arg1 and vla sel with arg0, arg1 being VECTOR_CST. > > > > It seems to work for the VLA tests written in > > test_vec_perm_vla_folding (), and am working thru the fallout observed in > > regression testing. > > > > Does the approach taken in the patch look in the right direction ? > > I am not sure if I have got the conversion from "sel_index" > > to index of either arg0, or arg1 entirely correct. > > I would be grateful for suggestions on the patch. > ping https://gcc.gnu.org/pipermail/gcc-patches/2022-August/599888.html ping * 2 https://gcc.gnu.org/pipermail/gcc-patches/2022-August/599888.html Thanks, Prathamesh > > Thanks, > Prathamesh > > > > Thanks, > > Prathamesh