From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id 16C0E3858D32 for ; Mon, 29 Aug 2022 06:09:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 16C0E3858D32 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-ej1-x62f.google.com with SMTP id p16so10484851ejb.9 for ; Sun, 28 Aug 2022 23:09:03 -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; bh=P78zYkbWXyPLK7zmkBP83sU9gsBM93Ft1qPPUz0aW1A=; b=EZdpZPHYx9788WGP/hipaS0D+5OVPx4MiRT/7skK0N9RRepmbUz/CyVAWCK4zHRiE4 w9Vi8MnucM7RGp4tnRd0BOti9Zh0CdCOm6t5bdtTThoJa3+riLfqxzAduOv59zLsYjZW jPYMfq/qJAg+oRthjVoOVHlG18k5Xyk45csZdUps1CttcsoZpB14UGga32Z3XEsKJgJZ 73Yaypy5JggqXwdd51h3W1vE8C2822K2IUhlWKYPKz+sIyeUD6ni6BwsGq9MGOpvHN5r GOACqgt/NOVPBv0u+yzLYUOpywRwGbX5Q3tCESfC3iBjhxsml9pRvN3t9v/Y49bmfDBt OTJw== 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; bh=P78zYkbWXyPLK7zmkBP83sU9gsBM93Ft1qPPUz0aW1A=; b=gW5HdQ+eqEaREIqnT9w1JQTBi0MAqtw084WsgCifaDOEC0osw59qhRKu3HlQAm7a8a y8fohSJ3zCiqKbKnb4dNZUbMyE4EFvHNIQtYZInM6v+rskMrqbDSPrMkpxHX0yF/prCx GFpGMGga4g0sfnze+U0lfF+V0tTwbu/fEZV8YqpHV5e/I4tyxh/BTpLwVFuXkGOjMkjk XmxfXCa0icDHA3m98Kr1AbFnYRtXxaZfhgpnwEty8jmg0kyVcvNGaKeOSKeXt0HtgkqN AAFkDUUvDDC9dNafC+7CZccrCP6b6K7cJv7P2O36ZRvTZjwZpk4qsAOhX9qSctDva+87 oFmQ== X-Gm-Message-State: ACgBeo1+c8/KauAw0TNW9Y+657P5Vf+fuFxu8YzpQ44xFv3/dsPyUH+r 9FqGdDWfR+v7D1qYab0Gx7IqkGACWzi4ObjXrjpkoQmmBzBuNA== X-Google-Smtp-Source: AA6agR5H8XEKEpyv5j9zG8gFzX6M87vsDd+xwm1FIYHEwVWHmU5JIoFj1RUKD/wBu3d6xVRyhpqFeaqC7q8U+nRCWcA= X-Received: by 2002:a17:907:2896:b0:730:983c:4621 with SMTP id em22-20020a170907289600b00730983c4621mr12739357ejc.502.1661753339689; Sun, 28 Aug 2022 23:08:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Prathamesh Kulkarni Date: Mon, 29 Aug 2022 11:38:23 +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.4 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,TXREP,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR 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 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 Thanks, Prathamesh > > Thanks, > Prathamesh