From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id 4667B384D0E5 for ; Thu, 17 Nov 2022 06:10:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4667B384D0E5 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-ej1-x632.google.com with SMTP id f27so2640438eje.1 for ; Wed, 16 Nov 2022 22:10:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=l2e6s8pqcPD1yjYbcT0KCanKETfvvBh7TYC9Cmx1jqY=; b=pQZoBbO7tIqLd100pxVrTjq9ILRNLfErTvqmwpRvt9XyVDrnrkNABd8CTdf/hRE1zZ GlBBU71d5GzijXWFvySR+dtoMlndkChMotUP1plR13H/rY3aKsgQYZZemZ9OMeUZb7i+ mGpy1mwtcw2PJy2Xu3r/GXwnDMfMrFQvVcRGjIVW87rcAvks+Eio5s+gtBpVlNKFKmve GBo9emPNNLEWDgWjBKtI0quDhEN8TU9n3HQZFlU32A3/C2RMIp1F3IlQ09aiNy3WPnRV tLoZt+/RChHELzIUetQXx1Uo87zcVJ7m7lze7/Fr15WHF+B57fKWvrFS5zofKQK6oD6l PX1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=l2e6s8pqcPD1yjYbcT0KCanKETfvvBh7TYC9Cmx1jqY=; b=QXPoEsdCwHffHJgtaKt7BErb0LLZ/qrHx5onWYBk1mCUfUG+XYlq7zKuxKO7GiwDK1 sB3ix6sBxYUv8PeSggfhEu64XQAWa6+vlZqGAQwg8Er6K0IC9h2AxLm7pp6WTT0J2YrI tqmKGGFtKEtEzD6vXKfTHQxli8x7scKPFboaJYfmwCFxSnAM25Pj6eO2zRerPNutu0Sk 2ix0ZSU39AJemXC5O0j0lr+XsNsnyhTPqxrp5nowGWPofmtGD5P/dIogMzZBash8z21l l0ywA7LPnHmxC+Q1Eoeu1modvngXaDow0BvpvjAgefEtY0HZ9QtvY/dPcD5rMt3k1fn5 +2jQ== X-Gm-Message-State: ANoB5pkewwDyFEd15YBS0dAOExVgC9HY+l3EBKnCwvmL0uWvedAq1JIj 8BqmMGbaXqjz3ItzxMCK33stjM9cx1BCsHP/VmA= X-Google-Smtp-Source: AA0mqf6wJ6vuT016pj7fht1Xj/wru0N6r1GHmuu1fV++qsaMpVDcQiRysvD5C9ZufwV8e0LRcAnPfhFMTqonJUAMcKo= X-Received: by 2002:a17:906:ce4a:b0:7ae:5ad1:e834 with SMTP id se10-20020a170906ce4a00b007ae5ad1e834mr922352ejb.312.1668665430533; Wed, 16 Nov 2022 22:10:30 -0800 (PST) MIME-Version: 1.0 References: <20221104000432.15254-1-hongyu.wang@intel.com> In-Reply-To: From: Hongyu Wang Date: Thu, 17 Nov 2022 14:05:12 +0800 Message-ID: Subject: Re: [PATCH] Optimize VEC_PERM_EXPR with same permutation index and operation [PR98167] To: Marc Glisse Cc: Hongyu Wang , gcc-patches@gcc.gnu.org, hongtao.liu@intel.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,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: > I assume the "full permutation" condition is to avoid performing some > extra operations that would raise exception flags. If so, are there > conditions (-fno-trapping-math?) where the transformation would be safe > with arbitrary shuffles? Yes, that could be an alternative choice with -fno-trapping-math on arbitrary shuffles. I may have a follow-up patch about this after the ICE is fixed. Thanks. > -- > Marc Glisse